Skip to content

Instantly share code, notes, and snippets.

@wijiler
Created July 16, 2021 14:10
Show Gist options
  • Select an option

  • Save wijiler/630aee507dec6cbb8ab3547f9bf70d9b to your computer and use it in GitHub Desktop.

Select an option

Save wijiler/630aee507dec6cbb8ab3547f9bf70d9b to your computer and use it in GitHub Desktop.
crystal server
require "http/server"
server = HTTP::Server.new do |context|
context.response.content_type = "text/plain"
end
address = server.bind_tcp 6969
server.listen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment