Documentation
¶
Overview ¶
Package httputil provides shared HTTP client utilities with optimized connection pooling. This prevents TIME_WAIT socket accumulation and improves performance.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClient ¶
DefaultClient returns a shared HTTP client with optimized connection pooling. The client is safe for concurrent use and reuses connections efficiently.
func InsecureClient ¶
InsecureClient returns a shared HTTP client that skips TLS verification. Use only when connecting to servers with self-signed certificates.
func NewClientWithTimeout ¶
NewClientWithTimeout creates a new HTTP client with the specified timeout. The client shares the optimized transport for connection reuse.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.