Open AllanJard opened 1 year ago
This should also be present in router
imo. All handlers could easily have res
for res.locals
access as this is far better for adding custom properties than placing them on the req
object itself. Better for types too.
Describe the feature you'd love to see
I'm looking to access a
res.local.
property inside mypathRewrite
custom function, but it isn't passed in - just the path and the request object.I've looked around and I don't immediately see anyone else asking about this, so perhaps it is a little unusual, but the
res
object is available where prepareProxyRequest is called and it could be passed down the chain likeres
is perhaps?Additional context (optional)
No response