package
0.0.69
Repository: https://github.com/oarkflow/frame.git
Documentation: pkg.go.dev

# Functions

CsrfFromForm returns a function that extracts a token from a multipart-form.
CsrfFromHeader returns a function that extracts token from the request header.
CsrfFromParam returns a function that extracts token from the url param string.
CsrfFromQuery returns a function that extracts token from the query string.
GetToken returns a CSRF token.
New validates CSRF token.
No description provided by the author
WithErrorFunc sets ErrorFunc.
WithExtractor sets extractor.
WithIgnoredMethods sets methods that do not need to be protected.
WithKeyLookUp sets a string in the form of "<source>:<key>" that is used to create an Extractor that extracts the token from the request.
WithNext sets whether to skip this middleware.
WithSecret sets secret.

# Variables

OptionsDefault is the default options.

# Structs

Option is the only struct that can be used to set Options.
Options defines the config for middleware.

# Type aliases

No description provided by the author
No description provided by the author