middlewares

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthHandler

func NewAuthHandler(cfg *config.AuthConfiguration) func(http.Handler) http.Handler

NewAuthHandler authenticate by key

func NewClientHintsHandler

func NewClientHintsHandler() func(http.Handler) http.Handler

NewClientHintsHandler parse query string see: http://httpwg.org/http-extensions/client-hints.html

func NewContentTypeHandler

func NewContentTypeHandler() func(http.Handler) http.Handler

NewContentTypeHandler negotiate content type

func NewImageExtensionFilterHandler

func NewImageExtensionFilterHandler(cfg *config.Configuration) func(http.Handler) http.Handler

NewImageExtensionFilterHandler filtered url for accept image file only

func NewOptionsContext

func NewOptionsContext(ctx context.Context, options *image.Options) context.Context

NewOptionsContext func

func NewOptionsHandler

func NewOptionsHandler(optionParser *image.OptionParser) func(http.Handler) http.Handler

NewOptionsHandler parse query string

func NewPathHandler

func NewPathHandler() func(http.Handler) http.Handler

NewPathHandler parse query string

func NewSecurityHandler

func NewSecurityHandler() func(http.Handler) http.Handler

NewSecurityHandler parse query string

func OptionsFromContext

func OptionsFromContext(ctx context.Context) (*image.Options, error)

OptionsFromContext gets the options out of the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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