Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderContentLength = "Content-Length" HeaderContentType = "Content-Type" )
View Source
const (
ContentTypeAppJSON = "application/json"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pipeline ¶
func NewPipeline ¶
func NewPipeline() Pipeline
type Request ¶
func NewRequest ¶
NewRequest creates a new http.Request with the specified input.
func (*Request) EncodeAsJSON ¶
EncodeAsJSON calls encodes an object as JSON encoding with SetBody.
type Response ¶
func (*Response) DecodeJSON ¶
func (*Response) HasStatusCode ¶
HasStatusCode returns true if the Response's status code is one of the specified values.
Click to show internal directories.
Click to hide internal directories.