Skip to content

Interface: HttpClientOptions ​

Defined in: client.ts:22

HTTP client configuration options

Properties ​

authToken? ​

optional authToken?: TokenSource

Defined in: client.ts:36

Auth token or getter function


authType? ​

optional authType?: string

Defined in: client.ts:38

Auth token type (Bearer, Token, etc.)


baseURL? ​

optional baseURL?: string

Defined in: client.ts:24

Base URL for requests


csrfToken? ​

optional csrfToken?: TokenSource

Defined in: client.ts:34

CSRF token or getter function


enableErrorLogging? ​

optional enableErrorLogging?: boolean

Defined in: client.ts:40

Enable error logging


headers? ​

optional headers?: Record<string, string>

Defined in: client.ts:26

Default headers


laravel? ​

optional laravel?: boolean

Defined in: client.ts:50

Enable Laravel-specific features


logger? ​

optional logger?: Logger

Defined in: client.ts:42

Custom logger function


retries? ​

optional retries?: number

Defined in: client.ts:44

Number of retries for failed requests


retryDelay? ​

optional retryDelay?: number

Defined in: client.ts:46

Delay between retries in milliseconds


shouldRetry? ​

optional shouldRetry?: ShouldRetryFunction

Defined in: client.ts:48

Custom retry logic


timeout? ​

optional timeout?: number

Defined in: client.ts:30

Request timeout in milliseconds


trackRequests? ​

optional trackRequests?: boolean

Defined in: client.ts:32

Enable request tracking


withCredentials? ​

optional withCredentials?: boolean

Defined in: client.ts:28

Include credentials

Documentation of 1.0.14 , built from 5520ec9 on 1.0.14 by pipeline #2985012441 on 2026-10-21.