StaticFilesOptionsBuilder
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Defined in: src/http/static/StaticFilesOptions.ts:35
Fluent builder for StaticFilesOptionsType.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new StaticFilesOptionsBuilder():
StaticFilesOptionsBuilder
Returns
Section titled “Returns”StaticFilesOptionsBuilder
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”withBrowse()
Section titled “withBrowse()”withBrowse(
enabled?):this
Defined in: src/http/static/StaticFilesOptions.ts:42
Parameters
Section titled “Parameters”enabled?
Section titled “enabled?”boolean = true
Returns
Section titled “Returns”this
withCacheControl()
Section titled “withCacheControl()”withCacheControl(
value):this
Defined in: src/http/static/StaticFilesOptions.ts:45
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
withContentType()
Section titled “withContentType()”withContentType(
contentType):this
Defined in: src/http/static/StaticFilesOptions.ts:66
Parameters
Section titled “Parameters”contentType
Section titled “contentType”string
Returns
Section titled “Returns”this
withContentTypes()
Section titled “withContentTypes()”withContentTypes(
map):this
Defined in: src/http/static/StaticFilesOptions.ts:63
Parameters
Section titled “Parameters”Readonly<Record<string, string>>
Returns
Section titled “Returns”this
withDotfiles()
Section titled “withDotfiles()”withDotfiles(
policy):this
Defined in: src/http/static/StaticFilesOptions.ts:57
Parameters
Section titled “Parameters”policy
Section titled “policy”"allow" | "deny"
Returns
Section titled “Returns”this
withEtag()
Section titled “withEtag()”withEtag(
enabled):this
Defined in: src/http/static/StaticFilesOptions.ts:48
Parameters
Section titled “Parameters”enabled
Section titled “enabled”boolean
Returns
Section titled “Returns”this
withIndexFiles()
Section titled “withIndexFiles()”withIndexFiles(…
names):this
Defined in: src/http/static/StaticFilesOptions.ts:39
Parameters
Section titled “Parameters”…string[]
Returns
Section titled “Returns”this
withLastModified()
Section titled “withLastModified()”withLastModified(
enabled):this
Defined in: src/http/static/StaticFilesOptions.ts:51
Parameters
Section titled “Parameters”enabled
Section titled “enabled”boolean
Returns
Section titled “Returns”this
withMaxFileSize()
Section titled “withMaxFileSize()”withMaxFileSize(
bytes):this
Defined in: src/http/static/StaticFilesOptions.ts:69
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”this
withRanges()
Section titled “withRanges()”withRanges(
enabled):this
Defined in: src/http/static/StaticFilesOptions.ts:54
Parameters
Section titled “Parameters”enabled
Section titled “enabled”boolean
Returns
Section titled “Returns”this
withSymlinks()
Section titled “withSymlinks()”withSymlinks(
policy):this
Defined in: src/http/static/StaticFilesOptions.ts:60
Parameters
Section titled “Parameters”policy
Section titled “policy”"within-root" | "follow"
Returns
Section titled “Returns”this
create()
Section titled “create()”
staticcreate():StaticFilesOptionsBuilder
Defined in: src/http/static/StaticFilesOptions.ts:36
Returns
Section titled “Returns”StaticFilesOptionsBuilder
