Documentation ¶
Index ¶
- type BasicAuth
- type HttpClient
- func (hc *HttpClient) Close()
- func (hc *HttpClient) DiscardHTTPResponse(response *http.Response)
- func (hc *HttpClient) Get(ctx context.Context, getURL, cookies string, headers map[string]string) (*http.Response, error)
- func (hc *HttpClient) HTTPRequest(ctx context.Context, method, requestURL, cookies string, ...) (*http.Response, error)
- func (hc *HttpClient) Post(ctx context.Context, postURL, cookies string, headers map[string]string, ...) (*http.Response, error)
- func (hc *HttpClient) SimpleGet(ctx context.Context, getURL string) (*http.Response, error)
- func (hc *HttpClient) SimplePost(ctx context.Context, postURL, contentType string, body io.Reader) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
func NewHttpClient ¶
func NewHttpClient(timeout int) *HttpClient
func (*HttpClient) Close ¶
func (hc *HttpClient) Close()
func (*HttpClient) DiscardHTTPResponse ¶
func (hc *HttpClient) DiscardHTTPResponse(response *http.Response)
func (*HttpClient) HTTPRequest ¶
Click to show internal directories.
Click to hide internal directories.