Documentation ¶
Index ¶
- func Delete(url string, authHeader string) (int, []byte)
- func DeleteWithHeaderInResult(url string, authHeader string) (int, http.Header, []byte)
- func Get(url string, authHeader string) (int, []byte)
- func GetWithHeaderInResult(url string, authHeader string) (int, http.Header, []byte)
- func Patch(url string, requestBody []byte, requestHeaders map[string]string, ...) (int, []byte, map[string][]string)
- func Post(url string, requestBody []byte, authHeader string) (int, []byte)
- func PostMultipart(url string, files map[string][]byte, fields map[string][]byte, ...) (int, []byte, map[string][]string)
- func PostRaw(url string, requestBody []byte, contentType string, ...) (int, []byte, map[string][]string)
- func PostWithHeaderResult(url string, requestBody []byte, authHeader string, headers map[string]string) (int, []byte, map[string][]string)
- func Put(url string, requestBody []byte, requestHeaders map[string]string, ...) (int, []byte, map[string][]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWithHeaderInResult ¶
DeleteWithHeaderInResult sends a http delete request and return the response together with headers.
func GetWithHeaderInResult ¶
GetWithHeaderInResult sends a http get request and return the response together with headers.
func Patch ¶
func Patch(url string, requestBody []byte, requestHeaders map[string]string, authHeader string) (int, []byte, map[string][]string)
Patch sends a patch request to the url
func PostMultipart ¶
func PostMultipart(url string, files map[string][]byte, fields map[string][]byte, authHeader string) (int, []byte, map[string][]string)
PostMultipart sends a multi-part form post request to the url.
func PostRaw ¶
func PostRaw(url string, requestBody []byte, contentType string, requestHeaders map[string]string, authHeader string) (int, []byte, map[string][]string)
PostRaw posts a raw byte array to server.
func PostWithHeaderResult ¶
func PostWithHeaderResult(url string, requestBody []byte, authHeader string, headers map[string]string) (int, []byte, map[string][]string)
PostWithHeaderResult sends a http post request to the url with post body and auth header and get response together with response header.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.