Documentation ¶
Index ¶
- func DownloadFile(client *retryablehttp.Client, u, path string) (downloadedFilePath string, err error)
- func GetResourceHeaderValue(client *retryablehttp.Client, url, method, header string, secrets []string) (result string, err error)
- func GetResponseBody(resp *http.Response) (body []byte, err error)
- func MaskSecrets(content string, secret []string) string
- func NewHTTPClient() *retryablehttp.Client
- func Request(c *retryablehttp.Client, url string, method string, inHeaders http.Header, ...) (body []byte, headers http.Header, status int, err error)
- func RequestContentDispositionFileName(httpClient *retryablehttp.Client, url string, secrets []string) (filename string, err error)
- func Resolve(name string) (ip netip.Addr, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func GetResourceHeaderValue ¶
func GetResourceHeaderValue(client *retryablehttp.Client, url, method, header string, secrets []string) (result string, err error)
GetResourceHeaderValue will make an HTTP request and return the value of the specified header
func MaskSecrets ¶
func NewHTTPClient ¶
func NewHTTPClient() *retryablehttp.Client
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.