How do I use node.js http-proxy for logging HTTP traffic in a computer?

后端 未结 2 865
一生所求
一生所求 2021-01-01 03:39

I am trying to implement the simplest example:

var http = require(\'http\'),
var httpProxy = require(\'http-proxy\');

httpProxy.createServer(function (req,          


        
2条回答
  •  旧巷少年郎
    2021-01-01 04:18

    I am not sure if this helps because the posted information are really short. But I found a post that they updated the api ...

    you might want to check out this post:

    Updating to node-http-proxy v0.5.0 http://blog.nodejitsu.com/updating-node-http-proxy

提交回复
热议问题