Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeForm ¶
EncodeForm encodes the payload as URL encoded form into writer. Accepted types include url.Values, map[string][]string, and map[string]string. Other types will error.
func EncodeJSON ¶
EncodeJSON is an Encoder that encodes payload as JSON.
Types ¶
type Decoder ¶
Decoder decodes response body into some destination of the caller's choice.
func DecodeForm ¶
DecodeForm decodes response body as URL encoded form into the destination url.Values. The response body is closed afterwards.
func DecodeJSON ¶
func DecodeJSON(destination interface{}) Decoder
DecodeJSON produces a Decoder that decodes response body into given destination. The response body is closed afterwards.
Click to show internal directories.
Click to hide internal directories.