Skip to content

the worst piece of code @whyrusleeping has ever written that made it to production

License

Notifications You must be signed in to change notification settings

whyrusleeping/multireq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

the worst piece of code @whyrusleeping has ever written that made it to production

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages