hsts

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Header        string        = "Strict-Transport-Security"
	DefaultMaxAge time.Duration = 365 * 24 * time.Hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	Tracer middleware.Tracer
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) *Middleware

func (*Middleware) Middleware

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

type Option

type Option func(*Middleware)

func WithIncludeSubDomains

func WithIncludeSubDomains() Option

func WithMaxAge

func WithMaxAge(age time.Duration) Option

func WithPreload

func WithPreload() Option

Jump to

Keyboard shortcuts

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