-
- Downloads
Add /hostname endpoint (#81)
This adds a new /hostname endpoint as originally proposed in #66. In this implementation, it exposes a dummy hostname by default, and only exposes the real hostname (via `os.Hostname()`) if the `-use-real-hostname` flag is given on the command line.
Showing
- Makefile 1 addition, 1 deletionMakefile
- README.md 27 additions, 18 deletionsREADME.md
- cmd/go-httpbin/main.go 26 additions, 8 deletionscmd/go-httpbin/main.go
- httpbin/handlers.go 8 additions, 0 deletionshttpbin/handlers.go
- httpbin/handlers_test.go 46 additions, 0 deletionshttpbin/handlers_test.go
- httpbin/httpbin.go 17 additions, 0 deletionshttpbin/httpbin.go
- httpbin/static/index.html 1 addition, 0 deletionshttpbin/static/index.html
Please register or sign in to comment