mirror of
https://github.com/imjasonh/transports
synced 2026-07-07 00:23:07 +00:00
No description
| bearer | ||
| fn | ||
| logging | ||
| README.md | ||
This repo provides HTTP RoundTrippers I find myself reimplementing all the time.
bearer
This package provides an http.RoundTripper that sets a bearer authorization
token on all requests.
logging
This package provides an http.RoundTripper that logs all requests it makes.
fn
This package provides a func to create an http.RoundTripper from a func.
client := &http.Client{
Transport: fn.RoundTripperFunc(func(r *http.Request) (*http.Response, error) {
// this func is called when the client RoundTrips.
})
}