httpx

package
v0.3.22 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckResponse added in v0.3.2

func CheckResponse(r *http.Response) error

func ContextWithRemoteAddr added in v0.3.10

func ContextWithRemoteAddr(ctx context.Context, remoteAddr string) context.Context

func RemoteAddrFromContext added in v0.3.10

func RemoteAddrFromContext(ctx context.Context) (string, bool)

func ServeContext

func ServeContext(ctx context.Context, handler http.Handler, addr string) error

func WithAuthorization added in v0.0.3

func WithAuthorization(h http.Handler, bearer BearerAuth) http.Handler

func WithLogging added in v0.0.5

func WithLogging(h http.Handler) http.Handler

func WithRemoteAddress added in v0.3.10

func WithRemoteAddress(h http.Handler) http.Handler

Types

type BearerAuth added in v0.0.3

type BearerAuth interface {
	Authenticate(ctx context.Context, token string) (*auth.User, error)
}

Jump to

Keyboard shortcuts

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