middleware

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cors

Cors adds CORS headers to the response

func Csrf

Csrf checks for the CSRF prevention header and compares the origin header

func HttpRequestLogger

func HttpRequestLogger(handlerFunc http.HandlerFunc) http.HandlerFunc

Types

type HTTPReqInfo

type HTTPReqInfo struct {
	// contains filtered or unexported fields
}

HTTPReqInfo describes info about HTTP request

Jump to

Keyboard shortcuts

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