UNPKG

@types/proxy-from-env

Version:
13 lines (10 loc) 352 B
/// <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;