We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab9e0f2 commit d7a74e1Copy full SHA for d7a74e1
jest.config.cjs
src/ProxyResolver.ts
@@ -18,9 +18,10 @@ export class ProxyResolver {
18
this.options = options;
19
}
20
21
- getProxyForUrl(url: string, _req: http.ClientRequest): string {
+ // This method matches the interface expected by 'proxy-agent'. It is an arrow function to bind 'this'.
22
+ public readonly getProxyForUrl = (url: string, _req: http.ClientRequest): string => {
23
return this.getProxyForUrlOptions(url, this.options);
- }
24
+ };
25
26
private getProxyForUrlOptions(url: string | URL, options?: ProxyOptions): string {
27
let parsedUrl: URL;
0 commit comments