Skip to content

Document that req.is accepts an array #2038

@bjohansebas

Description

@bjohansebas

Description

We also accept that req.is can take either an array or multiple arguments as input, giving this method more flexibility.

See expressjs/express#6703

Expectations

We should document this on https://expressjs.com/en/5x/api.html#req.is and https://expressjs.com/en/4x/api.html#req.is to make that information more accessible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsIssues/pr concerning contentgood first issueIssues for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions