Skip to content

Type Alias: Hooks ​

Hooks = object

Defined in: src/types/hooks.ts:68

All available hooks

Properties ​

afterParseResponse? ​

optional afterParseResponse?: AfterParseResponseHook[]

Defined in: src/types/hooks.ts:74

Hooks called after the response body has been parsed


afterResponse? ​

optional afterResponse?: AfterResponseHook[]

Defined in: src/types/hooks.ts:72

Hooks called after each response is received, before parsing


beforeError? ​

optional beforeError?: BeforeErrorHook[]

Defined in: src/types/hooks.ts:78

Hooks called before a ValifetchError is thrown to the caller


beforeRequest? ​

optional beforeRequest?: BeforeRequestHook[]

Defined in: src/types/hooks.ts:70

Hooks called before each request is sent


beforeRetry? ​

optional beforeRetry?: BeforeRetryHook[]

Defined in: src/types/hooks.ts:76

Hooks called before each retry attempt is scheduled

Released under the MIT License. Built with Claude Code.