helmet

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(configs ...Config) route.Middleware

New creates security headers middleware.

Types

type Config

type Config struct {
	Next                    func(*route.Context) bool
	ContentTypeNosniff      string
	FrameOptions            string
	ReferrerPolicy          string
	XSSProtection           string
	CrossOriginOpenerPolicy string
	Custom                  map[string]string
}

Config configures security headers middleware.

Jump to

Keyboard shortcuts

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