Skip to content

Pass response status code via query string or path #32

@marchenko1985

Description

@marchenko1985

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions