Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPClient ¶
GetHTTPClient returns the shared HTTP client (lazy initialization) The pool is created on first call with either configured or default values
Types ¶
type Config ¶
type Config struct {
// InsecureSkipVerify allows self-signed certificates
// WARNING: This should be false in production for security
InsecureSkipVerify bool
// Connection pool settings
MaxIdleConns int
MaxIdleConnsPerHost int
IdleConnTimeout time.Duration
// Default timeout for requests
Timeout time.Duration
}
Config holds configuration for the scriptling HTTP pool Optimized for short-lived, diverse HTTP requests (requests library, wait_for)
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns sensible defaults (secure by default) Optimized for short-lived scripting HTTP requests
Click to show internal directories.
Click to hide internal directories.