Skip to main content
This release is 1 version behind 0.2.4 — the latest version of @undicijs/proxy. Jump to latest
This package works with Node.jsIt is unknown whether this package works with Cloudflare Workers, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
64%
Published
2 weeks ago (0.2.3)
function buildHttpProxyConnector
buildHttpProxyConnector(
uri: URL | string,
): buildConnector.connector
import { Agent } from 'undici';

const connector = buildHttpProxyConnector('http://3proxy:8080');
const httpProxyAgent = new Agent({connect: connector});

Parameters

uri: URL | string
optional
opts: HttpProxyOptions

Return Type

buildConnector.connector

Add Package

deno add @undicijs/proxy

Import symbol

import { buildHttpProxyConnector } from "@undicijs/proxy/http";

Add Package

npx jsr add @undicijs/proxy

Import symbol

import { buildHttpProxyConnector } from "@undicijs/proxy/http";

Add Package

yarn dlx jsr add @undicijs/proxy

Import symbol

import { buildHttpProxyConnector } from "@undicijs/proxy/http";

Add Package

pnpm dlx jsr add @undicijs/proxy

Import symbol

import { buildHttpProxyConnector } from "@undicijs/proxy/http";

Add Package

bunx jsr add @undicijs/proxy

Import symbol

import { buildHttpProxyConnector } from "@undicijs/proxy/http";