Documentation ¶
Index ¶
- type Resp
- type Response
- func Delete(uri string, header map[string]string, body io.Reader) (response Response, err error)
- func Get(uri string) (response Response, e error)
- func Post(uri string, header map[string]string, body io.Reader) (response Response, err error)
- func PostForm(uri string, data url.Values) (response Response, err error)
- func Put(uri string, header map[string]string, body io.Reader) (response Response, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
Response define Response interface
func Delete ¶
Delete will Delete数据 uri: post到的地址 header: header 请求体的header map,例如Content-Type:application/json body: post的数据
func Get ¶
Get 获取url对应的文件内容 header: header 请求体的header map,例如Content-Type:application/json 返回到content中
func Post ¶
Post will post数据 uri: post到的地址 header: header 请求体的header map,例如Content-Type:application/json body: post的数据
Click to show internal directories.
Click to hide internal directories.