Documentation ¶
Index ¶
- func Get(uri string) ([]byte, error)
- func PostFile(fieldName, fileName, uri string) ([]byte, error)
- func PostFromURLEncoded(uri string, params url.Values) ([]byte, error)
- func PostJSON(uri string, obj interface{}) ([]byte, error)
- func PostMultipartForm(fields []MultipartFormField, uri string) (respBody []byte, err error)
- func PostXML(uri string, obj interface{}) ([]byte, error)
- type MultipartFormField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostFromURLEncoded ¶
PostFromURLEncoded .
func PostMultipartForm ¶
func PostMultipartForm(fields []MultipartFormField, uri string) (respBody []byte, err error)
PostMultipartForm 上传文件或其他多个字段
Types ¶
Click to show internal directories.
Click to hide internal directories.