Skip to main content
Version: 1.x

Interface: ODataHttpOptions

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

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:53

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


headers?

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

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

Additional custom headers to include in the request.


timeout?

readonly optional timeout: number

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

Timeout in ms for the HTTP request.