Skip to content

Commit

Permalink
add jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
kirill-ivlev committed May 19, 2022
1 parent b54e925 commit 458f4a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion node/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,13 @@ export interface ProxyConfiguration {
proxyBypassHosts?: string[];
}


/**
* Build Proxy URL in the following format: protocol://username:password@hostname:port
* @param proxyUrl Url address of the proxy server (eg: http://example.com)
* @param proxyUsername Proxy username (optional)
* @param proxyPassword Proxy password (optional)
* @returns string
*/
function getProxyFormattedUrl(proxyUrl: string, proxyUsername: string | undefined, proxyPassword: string | undefined): string {
const parsedUrl: URL = new URL(proxyUrl);
let proxyAddress: string = `${parsedUrl.protocol}//${parsedUrl.host}`;
Expand Down

0 comments on commit 458f4a1

Please sign in to comment.