HstsOptionsBuilder
Este conteúdo não está disponível em sua língua ainda.
Defined in: src/http/middleware/HstsOptions.ts:27
Fluent builder for HstsOptionsType.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HstsOptionsBuilder():
HstsOptionsBuilder
Returns
Section titled “Returns”HstsOptionsBuilder
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”build()
Section titled “build()”build():
Partial<T>
Defined in: src/util/OptionsBuilder.ts:51
Snapshot the set fields as an independent Partial<T> (own props only).
Returns
Section titled “Returns”Partial<T>
Inherited from
Section titled “Inherited from”withIncludeSubDomains()
Section titled “withIncludeSubDomains()”withIncludeSubDomains(
flag?):this
Defined in: src/http/middleware/HstsOptions.ts:34
Parameters
Section titled “Parameters”boolean = true
Returns
Section titled “Returns”this
withMaxAge()
Section titled “withMaxAge()”withMaxAge(
seconds):this
Defined in: src/http/middleware/HstsOptions.ts:31
Parameters
Section titled “Parameters”seconds
Section titled “seconds”number
Returns
Section titled “Returns”this
withPreload()
Section titled “withPreload()”withPreload(
flag?):this
Defined in: src/http/middleware/HstsOptions.ts:37
Parameters
Section titled “Parameters”boolean = true
Returns
Section titled “Returns”this
create()
Section titled “create()”
staticcreate():HstsOptionsBuilder
Defined in: src/http/middleware/HstsOptions.ts:28
Returns
Section titled “Returns”HstsOptionsBuilder
