Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

facebookarchive/httpcontrol

Repository files navigation

httpcontrol Build Status

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages