decorates

package
v0.0.0-...-a645757 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorsHeader2

func CorsHeader2(inner http.Handler) http.Handler

Types

type Handler

type Handler func(http.ResponseWriter, *http.Request) *models.APPError

func (Handler) ContentHTML

func (inner Handler) ContentHTML() Handler

func (Handler) ContentJSON

func (inner Handler) ContentJSON() Handler

func (Handler) ContentPLAIN

func (inner Handler) ContentPLAIN() Handler

func (Handler) ContentType

func (inner Handler) ContentType(contentType string) Handler

func (Handler) CorsHeader

func (inner Handler) CorsHeader() Handler

func (Handler) Logger

func (inner Handler) Logger() Handler

func (Handler) ServeHTTP

func (fn Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (Handler) Verify

func (inner Handler) Verify() Handler

Jump to

Keyboard shortcuts

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