-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Add proper support of Accept HTTP header #917
Comments
@sungam3r What do you think makes the most sense here: Option 1Assuming the requested content-type is supported, return exactly the content-type that was passed into the Accept header. For example, when requesting The accept header may return a wildcard, so in those situations we would need to pick an applicable content type. Option 2Try to find a best match, and return a compatible content-type with the request. For example, when requesting The ASP.NET-provided method for determining compatibility has changed across different versions of ASP.NET. In .NET 6, the same sample above would return Note that all versions from ASP.NET 2.1 through ASP.NET 6.0 do not support a quoted charset - e.g. |
I tend to option 2. |
If the request includes a supported response content type within the Accept header, the response content type should match the content type requested by the client.
See also:
Supported response content types should be:
application/json
application/graphql-response+json
(current draft spec)application/graphql+json
(previous draft spec and v7.0 behavior) -- probably remove in some future versionThe text was updated successfully, but these errors were encountered: