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