httpdefaults

package
v9.1.53+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultTransport

func DefaultTransport() *http.Transport

DefaultTransport returns a http.Transport with default values set similar to http.DefaultTransport

It establishes network connections as needed and caches them for reuse by subsequent calls.

Do not create a new copy for each request, as this would lead to connection and memory leaks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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