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: 2 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 (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-07-18T10:02:34.000Z (almost 9 years ago)
- Last Synced: 2024-04-04T14:15:28.678Z (2 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
Lists
- awesome-go-zh - httpcontrol - 控件允许HTTP传输级别控制围绕超时和重试. (工具库 / 交流)
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