Skip to content

Instantly share code, notes, and snippets.

@lojic
Created June 29, 2018 20:14
Show Gist options
  • Save lojic/0ec1a323d1d1ac68cd0fe5e42d92ce06 to your computer and use it in GitHub Desktop.
Save lojic/0ec1a323d1d1ac68cd0fe5e42d92ce06 to your computer and use it in GitHub Desktop.
(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