repeater is a stupid simple Go web application in the vein of
the wonderful httpbin. It was built to scratch an itch and
makes no claim to originality.
/returns the visitor (client) IP and its geo-location.
/:codereturns the request headers and a HTTP status for the given code (useful for
testing upstream proxy behaviour between repeater and the client).
/headers/:key/:valwill return a HTTP response header of
key: val, and echo both in the
response body (for additional confirmation that the application parsed your header).
/post/dataaccepts a POST request to the server with POST form data, and returns said
data in the response.
With a properly configured Go toolchain:
go get github.com/elithrar/repeater
Note: I'm currently using govendor as a requiremnt of Heroku, but would much rather use
repeater will run on port 8000 by default. Override this with a flag at runtime:
repeater -port 3000
BSD licensed. See the LICENSE file for details.