This commit is contained in:
Tatyana Kostromskaya
2023-10-04 15:45:37 +00:00
parent f699b96ecf
commit 844682e182
3 changed files with 48 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ export function getProxyAgent(destinationUrl: string): http.Agent {
return hc.getAgent(destinationUrl)
}
export function getProxyAgentDispatcher(destinationUrl: string): ProxyAgent | undefined {
export function getProxyAgentDispatcher(destinationUrl: string): ProxyAgent | Agent {
const hc = new httpClient.HttpClient()
return hc.getAgentDispatcher(destinationUrl)
}