Socket
Book a DemoInstallSign in
Socket

http-tunneling-proxy

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-tunneling-proxy

fairly simple http tunneling proxy

latest
Source
npmnpm
Version
0.3.4
Version published
Maintainers
1
Created
Source

http-tunneling-proxy

npm Travis

This is a simple, minimally modifiable HTTP tunneling proxy written in Node.js. It is based on a snippet available in the Node.js docs. The module exposes a single function and a CLI application for launching a local proxy.

CLI

http-tunneling-proxy [--port p] [--host h]

This command will spawn a local HTTP tunneling proxy, bound to the specified port and hostname. Port defaults to 3030, while host defaults to 127.0.0.1.

API

createProxyServer([callback])

This method will return a fresh, unbound http.Server instance that can be bound via listen(). The callback function will be called at each request:

const createProxyServer = require('http-tunneling-proxy');

const proxyServer = createProxyServer(req => {
  console.log(`${req.method} ${req.url}`);
});

proxyServer.listen(3030);

Keywords

http

FAQs

Package last updated on 25 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.