http

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromContext

func ClientFromContext(ctx context.Context) *retryablehttp.Client

ClientFromContext retrieves the HTTP client from context. Falls back to a default retryable client if none is set.

func NewLeveledLogger

func NewLeveledLogger(lgr logger.Logger) retryablehttp.LeveledLogger

NewLeveledLogger creates a retryablehttp.LeveledLogger from a go-logger.Logger.

func WithHTTPClient

func WithHTTPClient(ctx context.Context, client *retryablehttp.Client) context.Context

WithHTTPClient returns a new context with the provided HTTP client attached.

Types

This section is empty.

Jump to

Keyboard shortcuts

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