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

IdempotencyOptionsValidator

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

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.)

new IdempotencyOptionsValidator(): IdempotencyOptionsValidator

Defined in: src/http/cache/IdempotencyOptions.ts:96

IdempotencyOptionsValidator

OptionsValidator<IdempotencyOptionsType>.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