@types/proxy-from-env
Version:
TypeScript definitions for proxy-from-env
13 lines (10 loc) • 352 B
TypeScript
/// <reference types="node" />
import { Url } from "url";
/**
* Takes an input URL and returns the desired proxy URL. If no proxy is set, an
* empty string is returned.
* @param url The URL
* @returns The URL of the proxy that should handle the request to the given
* URL.
*/
export function getProxyForUrl(url: string | Url): string;