Saturday, 15 March 2014

node.js - How to get HTTP METHOD in http-proxy when proxying a session? -



node.js - How to get HTTP METHOD in http-proxy when proxying a session? -

i using node.js , module http-proxy (link here) proxy requests in server.

detecting delete requests

what want accomplish performing action when http delete request sent.

poor doc

how can this? module http-proxy comes poor documentation , objects res, req , proxyres not documented. doc possible understand object proxyres has property called headers , nil more.

req.method property want. string corresponding http request method such 'delete', 'get', 'post', etc. node-http-proxy not document because part of node core http.incomingmessage standard api (docs linked above).

node.js proxy node-http-proxy

No comments:

Post a Comment