Documentation ¶
Index ¶
- func DoCorsPreflightRequest(url, origin, requestMethod, requestHeader, referer string) (http.Header, error)
- func DoCorsSimpleRequest(url, httpMethod, origin, msg string) (http.Header, error)
- func DoGet(url string) ([]byte, error)
- func DoHttpsGet(url string, httpVersion int, rootCertPath, certPath, keyPath string) (http.Header, []byte, error)
- func DoJWT(host, method, path, apiKey, serviceAccount, token string) ([]byte, error)
- func DoPost(url, message string) ([]byte, error)
- func DoPostWithHeaders(url, message string, headers map[string]string) ([]byte, error)
- func DoWS(address, path, query string, header map[string][]string, reqMsg string, ...) ([]byte, error)
- func DoWithHeaders(url, method, message string, headers map[string]string) ([]byte, error)
- func DoWithHeadersAndTimeout(url, method, message string, headers map[string]string, timeout time.Duration) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoCorsPreflightRequest ¶
func DoCorsSimpleRequest ¶
DoCorsSimpleRequest sends a simple request with Origin field in request header
func DoHttpsGet ¶
func DoHttpsGet(url string, httpVersion int, rootCertPath, certPath, keyPath string) (http.Header, []byte, error)
DoHttpsGet performs a HTTPS Get request to a specified url
func DoJWT ¶
DoJWT performs an authenticated request using the credentials in the service account file.
func DoPostWithHeaders ¶
DoPostWithHeaders performs a POST request to a specified url with given headers and message
func DoWithHeaders ¶
DoWithHeaders performs a GET/POST/PUT/DELETE/PATCH request to a specified url with given headers and message(if provided)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.