Created
February 25, 2017 20:10
-
-
Save gchiu/2140e0ef57d9cd5fbb61e38518c65f0f to your computer and use it in GitHub Desktop.
series error
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
rebol [] | |
; do %shttpd.reb | |
; do https://raw.githubusercontent.com/rgchris/Scripts/master/httpd.reb | |
do https://gist.githubusercontent.com/rgchris/96a02d1a226d0ab2e605914fce6bcf80/raw/f96b8a1b7bb9b9f972f86e45f8d74a404808b747/httpd-renc.reb | |
server: open [ | |
scheme: 'httpd 8001 [ | |
probe request/action | |
switch request/action [ | |
"GET /hello" [ | |
response/status: 200 | |
response/type: copy "text/plain" | |
response/content: copy "Hello!" | |
] | |
] | |
] | |
] | |
wait server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment