headers

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefault

func GetDefault() (headers map[string]string)

func ModifyAfterUseMiddleware

func ModifyAfterUseMiddleware(fn ModifyAfterUseHeadersFn) (mw func(next http.Handler) http.Handler)

func ModifyMiddleware

func ModifyMiddleware(fn ModifyHeadersFn) (mw func(next http.Handler) http.Handler)

Types

type ModifyAfterUseHeadersFn

type ModifyAfterUseHeadersFn = func(w http.ResponseWriter, r *http.Request)

type ModifyHeadersFn

type ModifyHeadersFn = func(r *http.Request, headers map[string]string) map[string]string

Directories

Path Synopsis
policy
csp

Jump to

Keyboard shortcuts

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