Skip to content

Instantly share code, notes, and snippets.

@gchiu
Created February 25, 2017 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gchiu/2140e0ef57d9cd5fbb61e38518c65f0f to your computer and use it in GitHub Desktop.
Save gchiu/2140e0ef57d9cd5fbb61e38518c65f0f to your computer and use it in GitHub Desktop.
series error
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