Skip to content

hawx/echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

echo

Simple echoing webserver.

$ go get hawx.me/code/echo
$ $GOPATH/bin/echo
2014/01/26 21:43:59 serving on :8080

...and elsewheres...

$ curl localhost:8080
{
  "body": "",
  "form": {},
  "headers": {
    "Accept": "*/*",
    "User-Agent": "curl/7.32.0"
  },
  "method": "GET",
  "url": "localhost:8080/",
  "version": "HTTP/1.1"
}

Routes

/status/:code: Return response with the given status code.

/delay/:ms: Return a response after ms milliseconds.

About

Simple echoing webserver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages