Documentation ¶
Index ¶
- func Post(url string, bodyType string, body io.Reader) (response string, err error)
- func PostForm(url string, data url.Values) (response string, err error)
- func PostFormTimeout(url string, data url.Values) (string, error)
- func PostHTTPSJSONString(finalURL, _json string) (response string, err error)
- func PostJSONObj(finalURL, _json string, response interface{}) (err error)
- func PostJSONString(finalURL, _json string) (response string, err error)
- func PostRawJSON(finalURL string, req []byte, response interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostFormTimeout ¶
PostFormTimeout 通过client的Do方法执行
func PostHTTPSJSONString ¶
PostHTTPSJSONString post json string and return response string
func PostJSONObj ¶
PostJSONObj post json object
func PostJSONString ¶
PostJSONString post json string and return response string
func PostRawJSON ¶
PostRawJSON post json []byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.