Skip to main content

Interface: ODataHttpOptions

Defined in: src/modules/odata-http.ts:40

Options for HTTP-level OData operations.

Example​

const opts: ODataHttpOptions = {
timeout: 10_000,
csrfToken: 'abc123',
headers: { 'sap-client': '100' },
};

Extended by​

Properties​

csrfToken?​

readonly optional csrfToken: string

Defined in: src/modules/odata-http.ts:44

CSRF token for write operations (POST/PATCH/DELETE).


headers?​

readonly optional headers: Readonly<Record<string, string>>

Defined in: src/modules/odata-http.ts:46

Additional custom headers to include in the request.


timeout?​

readonly optional timeout: number

Defined in: src/modules/odata-http.ts:42

Timeout in ms for the HTTP request.