Documentation
¶
Overview ¶
Package httpclient ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPClient ¶
HTTPClient keeps client and its configuration
func (*HTTPClient) NewRequest ¶
NewRequest creates a new http.Request
func (*HTTPClient) NewRequestFromFile ¶
func (h *HTTPClient) NewRequestFromFile(filepath string) (*http.Request, error)
NewRequestFromFile calls RequestFromFile
func (*HTTPClient) ReadBody ¶
func (h *HTTPClient) ReadBody(body *io.ReadCloser) ([]byte, error)
ReadBody reads body without draining it
Click to show internal directories.
Click to hide internal directories.