Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/facebookarchive/httpcontrol

Package httpcontrol allows for HTTP transport level control around timeouts and retries.
https://github.com/facebookarchive/httpcontrol

Last synced: 3 months ago
JSON representation

Package httpcontrol allows for HTTP transport level control around timeouts and retries.

Awesome Lists containing this project

README

        

httpcontrol [![Build Status](https://secure.travis-ci.org/facebookgo/httpcontrol.png)](http://travis-ci.org/facebookgo/httpcontrol)
===========

import "github.com/facebookgo/httpcontrol"

Package httpcontrol allows a HTTP transport supporting connection pooling,
timeouts & retries.

This Transport is built on top of the standard library transport and augments it
with additional features. Using it can be as simple as:

client := &http.Client{
Transport: &httpcontrol.Transport{
RequestTimeout: time.Minute,
MaxTries: 3,
},
}
res, err := client.Get("http://example.com/")

Documentation: http://godoc.org/github.com/facebookgo/httpcontrol