Created
July 16, 2021 14:10
-
-
Save wijiler/630aee507dec6cbb8ab3547f9bf70d9b to your computer and use it in GitHub Desktop.
crystal server
This file contains hidden or 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
| 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