micronaut-core icon indicating copy to clipboard operation
micronaut-core copied to clipboard

Implement content negotiation for Accept header

Open yawkat opened this issue 2 years ago • 6 comments

This patch adds support for proper content negotiation using the Accept header. This includes new support for:

  • "Partial" matches, like text/*
  • Quality parameters
  • Correct matching by precedence, e.g. matching text/plain over */*.

Compatibility considerations:

  • MediaType now considers parameters in matches, if specified
  • Overloaded routes that relied on the old, incorrect matching behavior will now match differently.

Resolves #6637

yawkat avatar Dec 13 '21 11:12 yawkat