Created
June 29, 2018 20:14
-
-
Save lojic/0ec1a323d1d1ac68cd0fe5e42d92ce06 to your computer and use it in GitHub Desktop.
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
(define (application-controller connection request) | |
(response | |
200 | |
#"OK" | |
(current-seconds) | |
TEXT/HTML-MIME-TYPE | |
empty | |
(λ (op) (write-bytes #"<html><body>Hello, World!</body></html>" op)))) | |
(serve | |
#:dispatch application-controller | |
#:port 8080) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment