Documentation
¶
Index ¶
- type Response
- func RequestGet(url string, params map[string]interface{}, headers map[string]string) Response
- func RequestPost(url string, data interface{}, headers map[string]string) Response
- func RequestPostJSON(url string, data interface{}, headers map[string]string) Response
- func RequestPut(url string, data interface{}, headers map[string]string) Response
- func RequestPutJSON(url string, data interface{}, headers map[string]string) Response
- func RequestSend(method string, url string, params map[string]interface{}, data interface{}, ...) Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct {
Status int `json:"status"`
Body string `json:"body"`
Data interface{} `json:"data"`
Headers map[string]interface{} `json:"headers"`
}
Response 请求响应结果
func RequestGet ¶
RequestGet 发送GET请求
func RequestPost ¶
RequestPost 发送POST请求
func RequestPostJSON ¶
RequestPostJSON 发送POST请求
func RequestPut ¶
RequestPut 发送PUT请求
func RequestPutJSON ¶
RequestPutJSON 发送PUT请求
Click to show internal directories.
Click to hide internal directories.