package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Mar 24, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New returns a new HTTP client with optional TLS and retry capabilities.
NewWithLogger returns a new HTTP client with optional TLS and retry capabilities.
Retry attempts are logged using the given logger.
type Config struct {
TLS *ConfigTLS `json:"tls,omitempty"`
TimeoutSeconds *optional.Int `json:"timeoutSeconds,omitempty"`
MaxRetries *optional.Int `json:"maxRetries,omitempty"`
}
Config represents configuration for an HTTP client with TLS and retry capabilities.
type ConfigTLS struct {
CABundle string `json:"caBundle,omitempty"`
InsecureSkipVerify bool `json:"insecureSkipVerify,omitempty"`
}
ConfigTLS configures TLS for an HTTP client.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.