handler

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Session

func Session(
	responseWriter http.ResponseWriter,
	httpRequest *http.Request,
)

Session wraps the HTTP handler with session related operations

Types

type MethodNotAllowedHandler added in v1.4.18

type MethodNotAllowedHandler struct{}

MethodNotAllowedHandler handles the route not found error, returning error code with corresponding logging

func (*MethodNotAllowedHandler) ServeHTTP added in v1.4.18

func (handler *MethodNotAllowedHandler) ServeHTTP(responseWriter http.ResponseWriter, httpRequest *http.Request)

type NotFoundHandler added in v1.4.18

type NotFoundHandler struct{}

NotFoundHandler handles the route not found error, returning error code with corresponding logging

func (*NotFoundHandler) ServeHTTP added in v1.4.18

func (handler *NotFoundHandler) ServeHTTP(responseWriter http.ResponseWriter, httpRequest *http.Request)

Jump to

Keyboard shortcuts

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