Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedResponse ¶
type CachedResponse struct {
// contains filtered or unexported fields
}
CachedResponse implements the Response interface, providing the ability to cache the critical pieces of information from a response object
func NewCachedResponseFromHTTP ¶
func NewCachedResponseFromHTTP(r *http.Response) (*CachedResponse, error)
NewCachedResponseFromHTTP is a creator for a cached response object that accepts a HTTP response as input
func (*CachedResponse) Body ¶
func (r *CachedResponse) Body() []byte
Body returns the cached body of a HTTP response
func (*CachedResponse) Header ¶
func (r *CachedResponse) Header() http.Header
Header returns the cached header of a HTTP response
Click to show internal directories.
Click to hide internal directories.