Skip to content

docs: document array and multiple-args support in req.is#2042

Merged
bjohansebas merged 3 commits intoexpressjs:gh-pagesfrom
GauravKesh:doc/update-req-is
Aug 23, 2025
Merged

docs: document array and multiple-args support in req.is#2042
bjohansebas merged 3 commits intoexpressjs:gh-pagesfrom
GauravKesh:doc/update-req-is

Conversation

@GauravKesh
Copy link
Copy Markdown
Contributor

This PR updates the Express 4.x and 5.x API documentation to clarify that
req.is() accepts either an array or multiple arguments, which provides more
flexibility when checking against content types.

Fixes: #2038

@GauravKesh GauravKesh requested a review from a team as a code owner August 18, 2025 17:01
@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 18, 2025

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit aca4433
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/68a365554d1f1600083e80d8
😎 Deploy Preview https://deploy-preview-2042--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 18, 2025

🚦 Lighthouse Results (Mobile & Desktop)

URL Device Perf A11y Best Practices
/ mobile 🟢 90 🟢 100 🟢 96
/en/blog/posts.html mobile 🟠 79 🟢 96 🟢 100
/en/5x/api.html mobile 🟠 76 🟢 95 🟢 96
/ desktop 🟢 97 🟢 100 🟢 96
/en/blog/posts.html desktop 🟢 99 🟢 96 🟢 93
/en/5x/api.html desktop 🟢 100 🟢 95 🟢 96

Copy link
Copy Markdown
Member

@bjohansebas bjohansebas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bjohansebas bjohansebas merged commit ae6197f into expressjs:gh-pages Aug 23, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document that req.is accepts an array

2 participants