Documentation ¶
Index ¶
- func GetWithHeader() jet.Func
- func HttpGet(url string) ([]byte, error)
- func HttpGetWidthHeader(url string, headerMap map[string]string) ([]byte, error)
- func HttpPostJson(url string, body interface{}) ([]byte, error)
- func HttpPostMap(urlStr string, contentType string, body map[string]string) ([]byte, error)
- func HttpPostWithHeader(url string, body string, headerMap map[string]string) (*http.Response, error)
- func HttpPostXml(url string, xmlBody string) ([]byte, error)
- func PostJson() jet.Func
- func PostWithHeader() jet.Func
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWithHeader ¶
func GetWithHeader() jet.Func
func HttpGetWidthHeader ¶
发送GET请求
func HttpPostMap ¶
func HttpPostWithHeader ¶
func HttpPostWithHeader(url string, body string, headerMap map[string]string) (*http.Response, error)
发送Post请求
func PostWithHeader ¶
func PostWithHeader() jet.Func
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.