Documentation ¶
Overview ¶
Package chttp provides some convenience function to wrap the standard http Client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Transport ¶
type Transport struct { BeforeReq func(req *http.Request) AfterReq func(resp *http.Response, req *http.Request) // contains filtered or unexported fields }
a simple wrapper for http.RoundTripper to do something before and after RoundTrip
func NewTransport ¶
func NewTransport(tr http.RoundTripper) *Transport
Click to show internal directories.
Click to hide internal directories.