secure

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() ports.Middleware

Types

type Handler

type Handler struct{}

Handler adds a minimal set of sane security headers. Safe for local dev; HSTS is only set when TLS is detected.

func (*Handler) Middleware

func (h *Handler) Middleware() func(http.Handler) http.Handler

Jump to

Keyboard shortcuts

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