Zum Inhalt springen
Deutsch

StaticFilesOptionsBuilder

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Defined in: src/http/static/StaticFilesOptions.ts:35

Fluent builder for StaticFilesOptionsType.

new StaticFilesOptionsBuilder(): StaticFilesOptionsBuilder

StaticFilesOptionsBuilder

OptionsBuilder.constructor

build(): Partial<T>

Defined in: src/util/OptionsBuilder.ts:51

Snapshot the set fields as an independent Partial<T> (own props only).

Partial<T>

OptionsBuilder.build


withBrowse(enabled?): this

Defined in: src/http/static/StaticFilesOptions.ts:42

boolean = true

this


withCacheControl(value): this

Defined in: src/http/static/StaticFilesOptions.ts:45

string

this


withContentType(contentType): this

Defined in: src/http/static/StaticFilesOptions.ts:66

string

this


withContentTypes(map): this

Defined in: src/http/static/StaticFilesOptions.ts:63

Readonly<Record<string, string>>

this


withDotfiles(policy): this

Defined in: src/http/static/StaticFilesOptions.ts:57

"allow" | "deny"

this


withEtag(enabled): this

Defined in: src/http/static/StaticFilesOptions.ts:48

boolean

this


withIndexFiles(…names): this

Defined in: src/http/static/StaticFilesOptions.ts:39

string[]

this


withLastModified(enabled): this

Defined in: src/http/static/StaticFilesOptions.ts:51

boolean

this


withMaxFileSize(bytes): this

Defined in: src/http/static/StaticFilesOptions.ts:69

number

this


withRanges(enabled): this

Defined in: src/http/static/StaticFilesOptions.ts:54

boolean

this


withSymlinks(policy): this

Defined in: src/http/static/StaticFilesOptions.ts:60

"within-root" | "follow"

this


static create(): StaticFilesOptionsBuilder

Defined in: src/http/static/StaticFilesOptions.ts:36

StaticFilesOptionsBuilder