Will be nice if it will be possible to pass response code not only by HTTP headers but by query string or path
Motivation: at moment I'm playing with nginx ingress, in its annotations I can pass URL only nothing else 🤷♂️
Seems like it will require really small change here, something like:
const setResponseStatusCode = parseInt(req.headers["x-set-response-status-code"] || req.query["x-set-response-status-code"], 10)
Will be nice if it will be possible to pass response code not only by HTTP headers but by query string or path
Motivation: at moment I'm playing with nginx ingress, in its annotations I can pass URL only nothing else 🤷♂️
Seems like it will require really small change here, something like: