Created
June 20, 2016 21:54
-
-
Save kyledrake/46f7188022d956de08ced4cbe4754c11 to your computer and use it in GitHub Desktop.
Crystal HTTP Benchmark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A very basic HTTP server | |
require "http/server" | |
server = HTTP::Server.new(8080) do |context| | |
context.response.content_type = "text/plain" | |
context.response.print "Hello world" | |
end | |
puts "Listening on http://0.0.0.0:8080" | |
server.listen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment