StaticFilesOptionsValidator
このコンテンツはまだ日本語訳がありません。
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.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new StaticFilesOptionsValidator():
StaticFilesOptionsValidator
Defined in: src/http/static/StaticFilesOptions.ts:85
Returns
Section titled “Returns”StaticFilesOptionsValidator
Overrides
Section titled “Overrides”OptionsValidator<StaticFilesOptionsType>.constructor
Methods
Section titled “Methods”validate()
Section titled “validate()”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.
Parameters
Section titled “Parameters”settings
Section titled “settings”Partial<T>
Returns
Section titled “Returns”void
