middlewares

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package middlewares contains middleware functions for the web server.

The functions are meant to be used with the net/http package.

The functions are:

  • AllowCors: adds CORS headers to the response.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowCors

func AllowCors(next http.Handler) http.Handler

AllowCors adds CORS headers to the response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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