Documentation ¶
Index ¶
- func HttpGet(url string) ([]byte, error)
- func HttpPost(url string, data string) ([]byte, error)
- func PostFile(fieldname, filename, url string) ([]byte, error)
- func PostJson(url string, obj interface{}) ([]byte, error)
- func PostJsonWithRespContentType(url string, obj interface{}) ([]byte, string, error)
- func PostMultipartForm(fields []MultipartFormField, url string) (respBody []byte, err error)
- func PostXML(url string, obj interface{}) ([]byte, error)
- func PostXMLWithTLS(url string, obj interface{}, ca, key string) ([]byte, error)
- type MultipartFormField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostJsonWithRespContentType ¶
PostJsonWithRespContentType post json request return:Content-Type + Body
func PostMultipartForm ¶
func PostMultipartForm(fields []MultipartFormField, url string) (respBody []byte, err error)
PostMultipartForm 上传文件或其他多个字段
Types ¶
Click to show internal directories.
Click to hide internal directories.