Zum Inhalt springen
Deutsch

StaticFilesOptionsValidator

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

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

Validates resolved StaticFilesOptionsType settings. maxFileSize (the in-memory buffering cap, in bytes) must be a positive integer, and the dotfiles / symlinks policies must be one of their allowed literals — replacing what would otherwise be a silent mis-configuration.

new StaticFilesOptionsValidator(): StaticFilesOptionsValidator

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

StaticFilesOptionsValidator

OptionsValidator<StaticFilesOptionsType>.constructor

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.

Partial<T>

void

OptionsValidator.validate