Documentation ¶
Index ¶
- func ParseResponse(response *http.Response) (string, error)
- type Response
- func Get(URL string) (Response, error)
- func GetBasicAuth(URL string, username string, password string) (Response, error)
- func GetBasicAuthCustomRetry(URL string, username string, password string, retryCount int, ...) (Response, error)
- func GetBasicAuthRetry(URL string, username string, password string) (Response, error)
- func GetCustomAuth(URL string, token string) (Response, error)
- func GetCustomAuthCustomRetry(URL string, token string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
- func GetCustomAuthRetry(URL string, token string) (Response, error)
- func GetCustomRetry(URL string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
- func GetHeaders(URL string, headers map[string]string) (Response, error)
- func GetHeadersCustomAuth(URL string, headers map[string]string, token string) (Response, error)
- func GetHeadersCustomAuthCustomRetry(URL string, headers map[string]string, retryCount int, ...) (Response, error)
- func GetHeadersCustomAuthRetry(URL string, headers map[string]string, token string) (Response, error)
- func GetHeadersCustomRetry(URL string, headers map[string]string, retryCount int, ...) (Response, error)
- func GetHeadersRetry(URL string, headers map[string]string) (Response, error)
- func GetRetry(URL string) (Response, error)
- func Post(URL string, requestBody string) (Response, error)
- func PostBasicAuth(URL string, requestBody string, username string, password string) (Response, error)
- func PostBasicAuthCustomRetry(URL string, requestBody string, username string, password string, ...) (Response, error)
- func PostBasicAuthRetry(URL string, requestBody string, username string, password string) (Response, error)
- func PostCustomAuth(URL string, requestBody string, token string) (Response, error)
- func PostCustomAuthCustomRetry(URL string, requestBody string, token string, retryCount int, ...) (Response, error)
- func PostCustomAuthRetry(URL string, requestBody string, token string) (Response, error)
- func PostHeaders(URL string, requestBody string, headers map[string]string) (Response, error)
- func PostHeadersCustomRetry(URL string, requestBody string, headers map[string]string, retryCount int, ...) (Response, error)
- func PostHeadersFormDataCustomRetry(URL string, formData map[string]string, headers map[string]string, ...) (Response, error)
- func PostHeadersFormDataRetry(URL string, formData map[string]string, headers map[string]string) (Response, error)
- func PostHeadersRetry(URL string, requestBody string, headers map[string]string) (Response, error)
- func Put(URL string, requestBody string) (Response, error)
- func PutBasicAuth(URL string, requestBody string, username string, password string) (Response, error)
- func PutBasicAuthCustomRetry(URL string, requestBody string, username string, password string, ...) (Response, error)
- func PutBasicAuthRetry(URL string, requestBody string, username string, password string) (Response, error)
- func PutCustomAuth(URL string, requestBody string, token string) (Response, error)
- func PutCustomAuthCustomRetry(URL string, requestBody string, token string, retryCount int, ...) (Response, error)
- func PutCustomAuthRetry(URL string, requestBody string, token string) (Response, error)
- func PutHeaders(URL string, requestBody string, headers map[string]string) (Response, error)
- func PutHeadersCustomRetry(URL string, requestBody string, headers map[string]string, retryCount int, ...) (Response, error)
- func PutHeadersRetry(URL string, requestBody string, headers map[string]string) (Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Response ¶
Response holds the processed data from HTTP calls
func GetBasicAuth ¶
GetBasicAuth makes an HTTP call to given URL with basic authentication and returns response.
func GetBasicAuthCustomRetry ¶
func GetBasicAuthCustomRetry(URL string, username string, password string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
GetBasicAuthCustomRetry makes an HTTP call to given URL with basic authentication and returns response. It also retries for failures with given retry count and wait seconds.
func GetBasicAuthRetry ¶
GetBasicAuthRetry makes an HTTP call to given URL with basic authentication and returns response. It also retries for failures.
func GetCustomAuth ¶
GetCustomAuth makes an HTTP call to given URL with custom authentication and returns response.
func GetCustomAuthCustomRetry ¶
func GetCustomAuthCustomRetry(URL string, token string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
GetCustomAuthCustomRetry makes an HTTP call to given URL with custom authentication and returns response. It also retries for failures with given retry count and wait seconds.
func GetCustomAuthRetry ¶
GetCustomAuthRetry makes an HTTP call to given URL with custom authentication and returns response. It also retries for failures.
func GetCustomRetry ¶
GetCustomRetry makes an HTTP call to given URL with custom retry options and returns Response
func GetHeaders ¶
GetHeaders makes an HTTP call to given URL with headers and returns response
func GetHeadersCustomAuth ¶
GetHeadersCustomAuth makes an HTTP call to given URL with headers and custom auth and returns response.
func GetHeadersCustomAuthCustomRetry ¶
func GetHeadersCustomAuthCustomRetry(URL string, headers map[string]string, retryCount int, retryWaitSeconds time.Duration, token string) (Response, error)
GetHeadersCustomAuthCustomRetry makes an HTTP call to given URL with headers and custom auth and returns response. It also retries for failures with given retry count and wait seconds.
func GetHeadersCustomAuthRetry ¶
func GetHeadersCustomAuthRetry(URL string, headers map[string]string, token string) (Response, error)
GetHeadersCustomAuthRetry makes an HTTP call to given URL with headers and custom auth and returns response. It also retries for failures.
func GetHeadersCustomRetry ¶
func GetHeadersCustomRetry(URL string, headers map[string]string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
GetHeadersCustomRetry makes an HTTP call to given URL with headers and returns response. It also retries for failures with given retry count and wait seconds.
func GetHeadersRetry ¶
GetHeadersRetry makes an HTTP call to given URL with headers and returns response. It also retries for failures.
func PostBasicAuth ¶
func PostBasicAuth(URL string, requestBody string, username string, password string) (Response, error)
PostBasicAuth makes an HTTP call to given URL with basic authentication and returns response.
func PostBasicAuthCustomRetry ¶
func PostBasicAuthCustomRetry(URL string, requestBody string, username string, password string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
PostBasicAuthCustomRetry makes an HTTP call to given URL with basic authentication and returns response. It also retries for failures with given retry count and wait seconds.
func PostBasicAuthRetry ¶
func PostBasicAuthRetry(URL string, requestBody string, username string, password string) (Response, error)
PostBasicAuthRetry makes an HTTP call to given URL with basic authentication and returns response. It also retries for failures.
func PostCustomAuth ¶
PostCustomAuth makes an HTTP call to given URL with custom authentication and returns response.
func PostCustomAuthCustomRetry ¶
func PostCustomAuthCustomRetry(URL string, requestBody string, token string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
PostCustomAuthCustomRetry makes an HTTP call to given URL with custom authentication and returns response. It also retries for failures with given retry count and wait seconds.
func PostCustomAuthRetry ¶
PostCustomAuthRetry makes an HTTP call to given URL with custom authentication and returns response. It also retries for failures
func PostHeaders ¶
PostHeaders makes an HTTP call to given URL with headers and returns response
func PostHeadersCustomRetry ¶
func PostHeadersCustomRetry(URL string, requestBody string, headers map[string]string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
PostHeadersCustomRetry makes an HTTP call to given URL with headers and returns response. It also retries for failures with given retry count and wait seconds.
func PostHeadersFormDataCustomRetry ¶
func PostHeadersFormDataCustomRetry(URL string, formData map[string]string, headers map[string]string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
PostHeadersFormDataCustomRetry makes an HTTP call to given URL with form data, headers and returns response. It also retries for failures with given retry count and wait seconds.
func PostHeadersFormDataRetry ¶
func PostHeadersFormDataRetry(URL string, formData map[string]string, headers map[string]string) (Response, error)
PostHeadersFormDataRetry makes an HTTP call to given URL with form data, headers and returns response. It also retries for failures.
func PostHeadersRetry ¶
PostHeadersRetry makes an HTTP call to given URL with headers and returns response. It also retries for failures.
func PutBasicAuth ¶
func PutBasicAuth(URL string, requestBody string, username string, password string) (Response, error)
PutBasicAuth makes an HTTP call to given URL with basic authentication and returns response.
func PutBasicAuthCustomRetry ¶
func PutBasicAuthCustomRetry(URL string, requestBody string, username string, password string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
PutBasicAuthCustomRetry makes an HTTP call to given URL with basic authentication and returns response. It also retries for failures with given retry count and wait seconds.
func PutBasicAuthRetry ¶
func PutBasicAuthRetry(URL string, requestBody string, username string, password string) (Response, error)
PutBasicAuthRetry makes an HTTP call to given URL with basic authentication and returns response. It also retries for failures.
func PutCustomAuth ¶
PutCustomAuth makes an HTTP call to given URL with custom authentication and returns response.
func PutCustomAuthCustomRetry ¶
func PutCustomAuthCustomRetry(URL string, requestBody string, token string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
PutCustomAuthCustomRetry makes an HTTP call to given URL with custom authentication and returns response. It also retries for failures with given retry count and wait seconds.
func PutCustomAuthRetry ¶
PutCustomAuthRetry makes an HTTP call to given URL with custom authentication and returns response. It also retries for failures.
func PutHeaders ¶
PutHeaders makes PUT HTTP call to given URL with headers and returns response.
func PutHeadersCustomRetry ¶
func PutHeadersCustomRetry(URL string, requestBody string, headers map[string]string, retryCount int, retryWaitSeconds time.Duration) (Response, error)
PutHeadersCustomRetry makes PUT HTTP call to given URL with headers and returns response. It also retries for failures with given retry count and wait seconds.