πŸ’Ž A simple HTTP Server written in Crystal πŸ’Ž
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
HTTP-Server-Crystal.cr
LICENSE
README.md

README.md

πŸ’Ž Simple HTTP Server Crystal πŸ’Ž

πŸ’Ž A simple HTTP Server written in Crystal πŸ’Ž

Crystal is a very interesting programming Language, you can create unbelievable fast applications with very few Lines of Code.

πŸ“ Code πŸ“

# Alpay Yildirim / 17.09.2018
# Crystal 0.26.1 / Debian Linux
# A very basic HTTP server 
require "http/server"

server = HTTP::Server.new do |context|
  context.response.content_type = "text/plain"
  context.response.print "Hello world, got #{context.request.path}!"
end

puts "Listening on http://127.0.0.1:8080"
server.listen(8080)