Created
January 28, 2016 21:29
-
-
Save shirok/02119436075b47c496c4 to your computer and use it in GitHub Desktop.
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
(use makiki) | |
(use gauche.net) | |
(define (main args) | |
(start-http-server :port 0 :startup-callback echo-server-info)) | |
(define (echo-server-info server-socks) | |
(print (any (^s (sockaddr-port (socket-address s))) server-socks)) | |
(flush)) | |
(define-http-handler "/" (^[req app] (respond/ok req "OK!"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment