Documentation ¶
Index ¶
- Constants
- func Do(req *http.Request) (resp *http.Response, err error)
- func ExpectContent(resp *http.Response, expect string) (err error)
- func ExpectSuccess(resp *http.Response) (err error)
- func Get(url string) (*http.Request, error)
- func IsNoContent(resp *http.Response) bool
- func IsSuccess(resp *http.Response) bool
- func NewError(resp *http.Response, err string) error
- func Request(method, url string, body io.Reader) (req *http.Request, err error)
Constants ¶
View Source
const ( TypeJSON = "application/json" TypePNG = "image/png" )
Variables ¶
This section is empty.
Functions ¶
func ExpectSuccess ¶
func IsNoContent ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.