middleware

package
v0.0.0-...-4071b33 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2018 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Use

func Use(h http.Handler, m ...Middleware) http.Handler

Types

type Middleware

type Middleware func(http.Handler) http.Handler

func CORS

func CORS() Middleware

CORS ensures the correct CORS headers are added to the response

func JSON

func JSON() Middleware

JSON is a middleware function that sets the content type header to JSON.

Jump to

Keyboard shortcuts

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