IdempotencyOptionsValidator
이 콘텐츠는 아직 번역되지 않았습니다.
Defined in: src/http/cache/IdempotencyOptions.ts:95
Validates resolved IdempotencyOptionsType settings: ttlMs (the
response-retention window) must be a positive finite number of
milliseconds, and missingHeader must be one of its allowed literals.
(Presence of cache is a required-field concern, not a validity one.)
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new IdempotencyOptionsValidator():
IdempotencyOptionsValidator
Defined in: src/http/cache/IdempotencyOptions.ts:96
Returns
Section titled “Returns”IdempotencyOptionsValidator
Overrides
Section titled “Overrides”OptionsValidator<IdempotencyOptionsType>.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
