Pular para o conteúdo
Português (BR)

StaticFilesOptionsValidator

Este conteúdo não está disponível em sua língua ainda.

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