the worst piece of code @whyrusleeping has ever written that made it to production
Switch branches/tags
Nothing to show
Clone or download
whyrusleeping Merge pull request #9 from lgierth/buffer-head
Don't try to buffer HEAD responses
Latest commit 9c7bfc8 Apr 7, 2016
Permalink
Failed to load latest commit information.
LICENSE add license Mar 22, 2016
README.md readme and stuff Jan 22, 2016
main.go Don't try to buffer HEAD responses Apr 7, 2016
multireq_test.go Don't try to buffer HEAD responses Apr 7, 2016

README.md

multireq

A small program to make one http request to multiple targets, and return the first one that comes back.

Usage

$ multireq :7777 http://localhost:8000 http://localhost:9000

This listens on port 7777 and redirects incoming requests to both localhost:8000 and localhost:9000. The first of those to return is returned to the client, the other is cancelled.

Installation

$ go get github.com/whyrusleeping/multireq