Public Repository

Last pushed: 3 months ago
Short Description
repeater is a stupid simple Go web application in the vein of the wonderful httpbin.
Full Description

repeater

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.
  • /:code returns the request headers and a HTTP status for the given code (useful for
    testing upstream proxy behaviour between repeater and the client).
  • /headers/:key/:val will 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/data accepts a POST request to the server with POST form data, and returns said
    data in the response.

WIP.

Install

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
gvt.

Run

repeater will run on port 8000 by default. Override this with a flag at runtime:

repeater -port 3000

License

BSD licensed. See the LICENSE file for details.

Docker Pull Command
Owner
cloudflareswarmpoc

Comments (0)