header

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (map[string]string, bool)

func Middleware

func Middleware() func(http.Handler) http.Handler

Middleware is an HTTP server middleware that gets all HTTP headers and adds them to a request context value.

func ToContext

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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