UNPKG

axios-proxy-builder

Version:

A simple utility to build an axios proxy request object from env's

16 lines (15 loc) 385 B
/// <reference types="node" /> import { Agent } from "http"; export interface RequestProxy { proxy: { protocol: string; hostname: string; port: number; auth: { username: string; password: string; }; } | boolean; httpsAgent?: Agent; } export declare const configureProxy: (requestURL: string) => RequestProxy;