middlewares

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorsMiddleware

func CorsMiddleware(next http.Handler) http.Handler

CorsMiddleware overrides CORS headers per request.

func NoCacheMiddleware

func NoCacheMiddleware(next http.Handler) http.Handler

NoCacheMiddleware disables caching of our responses. If caching of API responses is desired you should always explicitly enable it by setting the appropriate 'Cache-Control' header value. Sending no header defaults to 'private' which allows browsers to cache responses: https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms524721(v=vs.90)?redirectedfrom=MSDN

Types

This section is empty.

Jump to

Keyboard shortcuts

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