Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient interface {
Do(req *http.Request) (*http.Response, error)
SetCookies(u *url.URL, cookies []*http.Cookie)
}
func NewClient ¶
func NewClient(ttl time.Duration) HTTPClient
type MockHttpClient ¶
func (*MockHttpClient) SetCookies ¶
func (m *MockHttpClient) SetCookies(_ *url.URL, _ []*http.Cookie)
Click to show internal directories.
Click to hide internal directories.