Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleRecovered ¶
HandleRecovered logs a recovered panic
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
HTTPClient represents the HTTPClient infos
func NewHTTPClient ¶
func NewHTTPClient(baseURL string, options HTTPOptions) *HTTPClient
NewHTTPClient creates an HTTP requester object
func (*HTTPClient) Call ¶
func (r *HTTPClient) Call(path, method string, body io.Reader, headers map[string]string) (*HTTPResponse, error)
Call executes request with retries and returns response body, headers, status code and error
type HTTPOptions ¶
HTTPOptions represents the options for the HTTPRequest object
Click to show internal directories.
Click to hide internal directories.