redbird icon indicating copy to clipboard operation
redbird copied to clipboard

onRequest and onResponse support?

Open yhojann-cl opened this issue 10 years ago • 5 comments

Have support of onrequest and onresponse triggers? example, need send additional header to server "x-real-ip" with http.req.connection.remoteAddress and restrict access to certains urls by example /admin

yhojann-cl avatar Jul 04 '15 16:07 yhojann-cl

yes this is something that I have planned and is quite high priority, expect it in the next version.

manast avatar Jul 05 '15 08:07 manast

Thank you very much

yhojann-cl avatar Jul 05 '15 17:07 yhojann-cl

+1

lorneb avatar Mar 31 '16 06:03 lorneb

Any updates?

Burnsage avatar Apr 19 '17 20:04 Burnsage

Any updates? onRequest is in the readme however there is no handling for it in the function

https://github.com/OptimalBits/redbird/blob/master/lib/proxy.js#L392

This code doesn't work with the latest version, might try to port it over if I have time.

vorticalbox avatar Apr 22 '20 13:04 vorticalbox