Skip to content

Content negotiation via Accept header #1

@bjaus

Description

@bjaus

Auto-select response format based on the Accept request header. At minimum support application/json and application/xml, with application/json as the default fallback.

Scope:

  • Parse Accept header with quality values (e.g., application/xml;q=0.9, application/json;q=1.0)
  • Route to the appropriate encoder
  • Return 406 Not Acceptable if no supported format matches
  • Integrate with the existing WithEncoder customization point

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew featurepriority: highHigh value for framework parity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions