A secure HTTP Tunnel aka HTTP Proxy server written in Deno flavoured TypeScript.
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"
- The server will only proxy secure requests (HTTPS)
- Blog post: HTTP Tunnel and Proxy in JavaScript
MIT License | Copyright © 2024 David Bushell