Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/facebookarchive/httpcontrol
- Owner: facebookarchive
- License: other
- Archived: true
- Created: 2012-06-27T21:24:42.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-07-18T10:02:34.000Z (over 9 years ago)
- Last Synced: 2024-04-14T00:20:17.728Z (7 months ago)
- Language: Go
- Homepage: https://godoc.org/github.com/facebookgo/httpcontrol
- Size: 367 KB
- Stars: 464
- Watchers: 24
- Forks: 34
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-go - httpcontrol - Package httpcontrol allows for HTTP transport level control around timeouts and retries. - ★ 475 (Utilities)
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