/deno-http-tunnel

🚇 A secure HTTP Tunnel / HTTP Proxy

Primary LanguageTypeScriptMIT LicenseMIT

🚇 Deno HTTP Tunnel

JSR

A secure HTTP Tunnel aka HTTP Proxy server written in Deno flavoured TypeScript.

Usage

The proxy server listens on http://0.0.0.0:3000 by default.

Run it from the command line:

deno run --allow-env --allow-net jsr:@dbushell/http-tunnel

See mod.ts for CLI options.

Run it programmatically:

import {serveTunnel} from 'jsr:@dbushell/http-tunnel';
const tunnel = serveTunnel();

See types.ts for serveTunnel options and return type.

Test with curl:

curl --proxy "http://0.0.0.0:3000" "https://example.com"

Notes


MIT License | Copyright © 2024 David Bushell