Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-forward

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-forward

Simple proxy forward for incoming HTTP request

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
250
increased by61.29%
Maintainers
1
Weekly downloads
 
Created
Source

http-forward Build Status NPM

Simple proxy forward for incoming HTTP requets. Built for node.js/io.js.

Installation

npm install http-forward

API

const http = require('http')
const forward = require('http-forward')

var server = http.createServer(function (req, res) {
  // Define proxy config params
  req.forward = { target: 'http://new.server.net' }
  forward(req, res)
})

server.listen(3000)

forward(req, res, callback)

  • req http.IncomingMessage - Required
  • res http.OutgoingMessage - Required
  • callback function(err, res) - Optional callback

License

MIT - Tomas Aparicio

Keywords

FAQs

Package last updated on 14 Aug 2015

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc