http

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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 SetCtxMetadataAuthorizationToken

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

SetCtxMetadataAuthorizationToken is a helper function to set the authorization metadata in the context

Retrieves the authorization from the request context and sets it in the provided context.

Parameters:

  • ctx: the context
  • r: the request

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