@itd-api/proxy / ProxyFetch
Interface: ProxyFetch()
Defined in: index.ts:32
fetch, ходящий через прокси, и управление его пулом соединений.
ts
ProxyFetch(input, init?): Promise<Response>;Defined in: index.ts:33
fetch, ходящий через прокси, и управление его пулом соединений.
Parameters
input
string | URL | Request
init?
RequestInit
Returns
Promise<Response>
Properties
dispatcher
ts
readonly dispatcher: Dispatcher;Defined in: index.ts:35
Диспетчер undici, через который идут запросы.
Methods
close()
ts
close(): Promise<void>;Defined in: index.ts:37
Закрывает пул соединений, дождавшись завершения текущих запросов.
Returns
Promise<void>