Skip to content

Conversation

@hamzafrd
Copy link

What this PR does

Adds a practical example demonstrating how req.accepts() can be used
to respond with different content types and handle unsupported formats.

Why

The existing documentation explains the method but lacks a concrete
example, which can be confusing for new users.

Checklist

  • [v] Documentation only
  • [v] No behavior changes
  • [v] Tests pass

@hamzafrd hamzafrd requested a review from a team as a code owner December 29, 2025 02:31
@netlify
Copy link

netlify bot commented Dec 29, 2025

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 584308a
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6951e7fc3893fa0008ecd9c5
😎 Deploy Preview https://deploy-preview-2144--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
Contributor

🚦 Lighthouse Results (Mobile & Desktop)

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

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.

1 participant