middleware

package
v0.0.0-...-524bf5b Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentTypeFilter

func ContentTypeFilter(next http.Handler) http.Handler

ContentTypeFilter is a middleware for filtering requests which do not have Content-Type header set to application/json. Firstly checks if any bearer token is in Headers, if yes, then proceed, if no check for correct Content-Type header.

Types

This section is empty.

Jump to

Keyboard shortcuts

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