httputil

package
v0.0.0-...-bedf5c0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MPL-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context, client *http.Client) *http.Client

FromContext loads a client from the context and optionally injects the cache with the given namespace.

func HashURL

func HashURL(url string) string

HashURL hashes the given URL into a 28-byte string.

func WithClient

func WithClient(ctx context.Context, c *http.Client) context.Context

WithClient overrides the default HTTP client used by imgutil's HTTP functions. If ctx has an *Application instance and cache is true, then the Transport is wrapped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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