cloudflare / cloudflare/chanfana

Implement Content Negotiation to Support Multiple Response Formats

Open
#127 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
766
Forks
70
Avg merge
25m
Merged PRs (30d)
4

Description

To accommodate diverse client preferences, I propose introducing content negotiation. This feature allows clients to request their preferred content format (e.g., JSON, XML, HTML) via the Accept header, enabling the API to automatically adapt and serve the optimal media type.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests; start by reviewing the repository’s OpenAPI response-generation paths for Hono and itty-router. Define how Accept headers select JSON, XML, or HTML responses, and consider the work complete when the supported formats and selection behavior are specified and covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.