Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (12 sloc) 281 Bytes
#!/bin/bash
# run via: ncat -lk -p 8081 --sh-exec ./examples/helloworld.sh
source "vesper.sh"
# parses the http request
http_request
# generate the response
function handle_text {
http_response StatusOK "text/plain"
echo 'Hello World'
echo $HTTP_REQUEST_URI
}
handle_text
You can’t perform that action at this time.