Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSendFaied is returned when the request could not be created ErrSendFailed = errors.New("sending failed") // ErrResponseReadFail is returned when the response to the request could not be read ErrResponseReadFail = errors.New("failed to read response") // ErrBadResponse is returned when the request did not receive a 2** response ErrBadResponse = errors.New("bad response") )
Functions ¶
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter is a thread safe monotonic natural number counter
type RequestOption ¶
RequestOption can be used to modify the request that is to be sent
func JsonRequest ¶
func JsonRequest() RequestOption
JsonRequest sets the content type to application/json
Click to show internal directories.
Click to hide internal directories.