@itd-api/proxy / ProxyFetchOptions
Interface: ProxyFetchOptions
Defined in: index.ts:40
Настройки proxyFetch.
Properties
fetch?
ts
optional fetch?: {
(input, init?): Promise<Response>;
(input, init?): Promise<Response>;
};Defined in: index.ts:48
Базовая реализация fetch. По умолчанию — fetch из undici.
Обязана понимать опцию dispatcher: именно ею подключается прокси. Реализации, которые её не читают, запрос отправят, но мимо прокси и без всякой ошибки — в частности глобальный fetch Node 18 и 20, см. proxyFetch.
Call Signature
ts
(input, init?): Promise<Response>;Parameters
input
URL | RequestInfo
init?
RequestInit
Returns
Promise<Response>
Call Signature
ts
(input, init?): Promise<Response>;Parameters
input
string | URL | Request
init?
RequestInit
Returns
Promise<Response>