Documentation ¶
Index ¶
Constants ¶
View Source
const JSON = "application/json; charset=utf-8"
Variables ¶
This section is empty.
Functions ¶
func HasErrorCode ¶
func IsRequestProblem ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CloseIdleConnections ¶
func (c *Client) CloseIdleConnections()
CloseIdleConnections is never really needed in production with our persistent clients but it is handy for testing.
type Decoder ¶
func NewJSONDecoder ¶
func NewJSONDecoder(resp interface{}) Decoder
NewJSONDecoder returns a decoder func enclosing the resp param the func returned takes an io reader which will be passed rto a json decoder to decode into the resp.
type HTTPError ¶
type HTTPError struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.