itd-api / ResponseContext
Interface: ResponseContext
Defined in: core/options.ts:125
Данные об успешном ответе.
Extends
Properties
attempt
readonly attempt: number;Defined in: core/options.ts:121
Номер попытки, начиная с 1.
Inherited from
duration
readonly duration: number;Defined in: core/options.ts:128
Длительность запроса в мс.
headers
readonly headers: Headers;Defined in: core/options.ts:119
Inherited from
method
readonly method: string;Defined in: core/options.ts:114
Inherited from
operationId
readonly operationId: OperationId;Defined in: core/options.ts:111
Стабильная семантическая операция; raw у низкоуровневого вызова без явного ID.
Inherited from
path
readonly path: string;Defined in: core/options.ts:116
Путь без базового URL, например /api/posts.
Inherited from
response
readonly response: Response;Defined in: core/options.ts:130
Отдельная копия ответа: её тело можно прочитать, не мешая разбору внутри SDK.
signal
readonly signal: AbortSignal | undefined;Defined in: core/options.ts:113
Общий сигнал пользовательской отмены, истёкших сроков и освобождения клиента.
Inherited from
status
readonly status: number;Defined in: core/options.ts:126
url
readonly url: string;Defined in: core/options.ts:118
Итоговый URL со строкой запроса.