Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.08 KB

README.md

File metadata and controls

41 lines (25 loc) · 1.08 KB

🚇 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