prehandle

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSRFToken

func CSRFToken(ctx context.Context, rw http.ResponseWriter, req *http.Request) error

func FilterCookie

func FilterCookie(ctx context.Context, rw http.ResponseWriter, req *http.Request)

filter session cookie which is exist in redis, put it at req.context

func FilterHeader

func FilterHeader(ctx context.Context, w http.ResponseWriter, req *http.Request)

FilterHeader remove internal header if exist in request

func ReplaceOldCookie

func ReplaceOldCookie(ctx context.Context, rw http.ResponseWriter, req *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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