Documentation ¶
Overview ¶
Package chttp (Cooked HTTP) provides a wrapper around http.Client with cookies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithTransport ¶
func NewWithTransport(cookieDomain string, cookies []*http.Cookie, rt http.RoundTripper) *http.Client
NewWithTransport inits the HTTP client with cookies. It allows to use the custom Transport.
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.