Documentation ¶
Index ¶
- func Get(url string) ([]byte, error)
- func Post(url string, data []byte, contentType string) ([]byte, error)
- func PostFormData(url string, formFile multipart.File, fileName string, fieldName string) ([]byte, error)
- func PostJson(url string, data interface{}) ([]byte, error)
- func RawGet(url string) (*http.Response, []byte, error)
- func RawPost(url string, data []byte, contentType string) (*http.Response, []byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostFormData ¶
func PostFormData(url string, formFile multipart.File, fileName string, fieldName string) ([]byte, error)
PostFormData 发起post请求,格式为Form-Data
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.