Interface IJsonApiContentNegotiator
- Namespace
- JsonApiDotNetCore.Middleware
- Assembly
- JsonApiDotNetCore.dll
Performs content negotiation for JSON:API requests.
public interface IJsonApiContentNegotiator
Methods
Negotiate()
Validates the Content-Type and Accept HTTP headers from the incoming request. Throws a JsonApiException if unsupported. Otherwise, returns the list of negotiated JSON:API extensions, which should always be a subset of Extensions.
IReadOnlySet<JsonApiMediaTypeExtension> Negotiate()