HstsOptionsValidator
Esta página aún no está disponible en tu idioma.
Defined in: src/http/middleware/HstsOptions.ts:53
Validates resolved HstsOptionsType settings. maxAge must be a
non-negative number of seconds; the cross-field rule mirrors the
hstspreload.org submission requirements — a preload policy that could
never actually be accepted (too-short maxAge, or includeSubDomains
turned off) is rejected rather than emitting a silently-useless header.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HstsOptionsValidator():
HstsOptionsValidator
Defined in: src/http/middleware/HstsOptions.ts:54
Returns
Section titled “Returns”HstsOptionsValidator
Overrides
Section titled “Overrides”OptionsValidator<HstsOptionsType>.constructor
Methods
Section titled “Methods”validate()
Section titled “validate()”validate(
settings):void
Defined in: src/util/OptionsValidator.ts:75
Check the (merged) settings; throws OptionsError on the first
violation. Unset (undefined) fields always pass.
Parameters
Section titled “Parameters”settings
Section titled “settings”Partial<T>
Returns
Section titled “Returns”void
