express-http-proxy
express-http-proxy copied to clipboard
Update docs to show that req is passed to host resolver function. [ was: Request obj in host param ]
Hello, is it possible to access to request object in host param like this?
const proxy = require('express-http-proxy'); proxy((req, res) => req.proxyUrl)
When the host argument is a function, that function is passed the req as the first and only parameter.
host(req) {
}
I'll update the docs.
Doc not updated!