Skip to content

Instantly share code, notes, and snippets.

@kyledrake
Created Jun 20, 2016
Embed
What would you like to do?
Crystal HTTP Benchmark
# 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