gonzalocasas / node-proxy-middleware

proxy as middleware
MIT License
146 stars 65 forks source link

Support `body` with req.write() #52

Closed blainekasten closed 5 years ago

blainekasten commented 8 years ago

Not sure if this is something you are interested in, but I needed to be able to pass through JSON from a request. It doesn't seem that you guys use the write method at all. So this uses that if body is specified on the option.

For example:

proxy({
  ...
  body: JSON.stringify(req.body),
});
blainekasten commented 5 years ago

closing due to inactivity, and I no longer need this.