httpz

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context) *http.Client

Get extracts the *http.Client from context, returns the http.DefaultClient if not found.

func Initializer

func Initializer(_ context.Context) (injectz.Injector, injectz.Releaser)

Initializer is a *http.Client initializer.

func NewSingletonInjector

func NewSingletonInjector(httpClient *http.Client) injectz.Injector

NewSingletonInjector always injects the given *http.Client.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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