Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseClient ¶
type BaseClient struct {
// contains filtered or unexported fields
}
func NewBaseClient ¶
func NewBaseClient(baseURL string) *BaseClient
func (*BaseClient) CheckStatus ¶
func (c *BaseClient) CheckStatus(resp *http.Response) error
CheckStatus returns nil for 200 OK responses. For all other status codes, it drains the response body (for TCP connection reuse) and returns an *HTTPError.
Click to show internal directories.
Click to hide internal directories.