httpx

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: BSD-3-Clause Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient added in v0.39.0

func NewClient(o ClientOptions) *http.Client

NewClient returns a client that sets the beekeeper User-Agent. Share one client across nodes; its transport pools connections per host.

Types

type ClientOptions added in v0.39.0

type ClientOptions struct {
	InsecureSkipVerify bool
}

ClientOptions configures NewClient.

type HeaderRoundTripper

type HeaderRoundTripper struct {
	Next http.RoundTripper
}

HeaderRoundTripper sets the beekeeper User-Agent header. A nil Next means http.DefaultTransport.

func (*HeaderRoundTripper) CloseIdleConnections added in v0.39.0

func (hrt *HeaderRoundTripper) CloseIdleConnections()

CloseIdleConnections lets http.Client.CloseIdleConnections reach Next.

func (*HeaderRoundTripper) RoundTrip

func (hrt *HeaderRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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