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