Documentation ¶
Index ¶
- func DecodeJSONHttpResponse(r io.Reader, v interface{}, debug bool) ([]byte, error)
- func PrintError(err error, debug bool)
- func PrintGetRequest(url string, debug bool)
- func PrintJSONRequest(method string, url string, header http.Header, body []byte, debug bool)
- func PrintPostJSONRequest(url string, body []byte, debug bool)
- func PrintPostMultipartRequest(url string, mp map[string]string, debug bool)
- func PrintStringResponse(str string, debug bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJSONHttpResponse ¶
DecodeJSONHttpResponse decode json response with debug
func PrintGetRequest ¶
PrintGetRequest print get request with debug
func PrintJSONRequest ¶ added in v1.5.2
PrintJSONRequest print json request with debug
func PrintPostJSONRequest ¶
PrintPostJSONRequest print json request with debug
func PrintPostMultipartRequest ¶
PrintPostMultipartRequest print multipart/form-data post request with debug
func PrintStringResponse ¶
PrintStringResponse print string response with debug
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.