http

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilRequest = errors.New("nil request")
)

Functions

func SetOutgoingCtxMetadataAuthorizationToken added in v0.6.0

func SetOutgoingCtxMetadataAuthorizationToken(
	r *http.Request,
) (context.Context, error)

SetOutgoingCtxMetadataAuthorizationToken is a helper function to set the authorization metadata to the outgoing context

Retrieves the authorization from the request context and sets it to the outgoing context

Parameters:

  • r: the request to get the authorization from and from which to get the context

Returns:

  • context.Context: the context with the authorization metadata
  • error: an error if the request is nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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