Skip to main content
Version: 1.x

Interface: ODataHttpResult<TData>

Result of an OData HTTP operation.

Example

const result: ODataHttpResult<Product> = {
status: 200,
data: { Name: 'Widget', Price: 42 },
etag: 'W/"abc123"',
};

Type Parameters

TData

TData = unknown

Properties

data

readonly data: TData

Parsed response data.


etag?

readonly optional etag?: string

ETag header value, if present.


status

readonly status: number

HTTP status code of the response.