- getRequestUrl(targetUrl, proxy?): URL
-
Parameters
-
targetUrl: string
-
Optional
proxy: {
auth?: { username: string; password: string; };
host: string;
port?: number;
protocol?: "http" | "https";
}
-
Optional
auth?: { username: string; password: string; }
-
host: string
-
Optional
port?: number
-
Optional
protocol?: "http" | "https"
Returns URL
Returns the URL object for a request, taking into account a proxy.