httputil

package
v0.3.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause-Clear Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeHTTPClient

func SafeHTTPClient() *http.Client

SafeHTTPClient returns a default http client which has sensible timeouts, won't follow redirects, and enables idle connection pooling.

func SafeHTTPClientWithTLSConfig

func SafeHTTPClientWithTLSConfig(cfg *tls.Config) *http.Client

SafeHTTPClientWithTLSConfig returns a http client which has sensible timeouts, won't follow redirects, and if specified a http.Transport with the tls.Config provided.

func SafeHTTPClientWithTransport

func SafeHTTPClientWithTransport(transport *http.Transport) *http.Client

SafeHTTPClientWithTransport returns a http client which has sensible timeouts, won't follow redirects, and if specified the provided http.Transport.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL