Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HSTS ¶
type HSTS struct {
MaxAge time.Duration
IncludeSubDomains bool
Preload bool
// slice shared across requests instead of allocating one per request. The
// value is fixed at construction, so this is safe as long as nothing
// mutates the response header value slice in place. Off by default; see
// header.SetShared.
ShareValueSlice bool
}
HSTS middleware
Click to show internal directories.
Click to hide internal directories.