Documentation ¶
Overview ¶
Package http provides a simpler http.Client abstraction and derivative uses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicClient ¶
BasicClient is a simpler http.Client that only requires a Do method.
type CachedClient ¶
type CachedClient struct { BasicClient // contains filtered or unexported fields }
CachedClient is a BasicClient that caches responses.
func NewCachedClient ¶
func NewCachedClient(client BasicClient, c cache.Cache) *CachedClient
NewCachedClient returns a new CachedClient.
type WithUserAgent ¶
type WithUserAgent struct { BasicClient UserAgent string }
WithUserAgent is a basic HTTP client that adds a User-Agent header.
Click to show internal directories.
Click to hide internal directories.