AcceptMimeTypesOrderedByQuality Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Http
- Assemblies
- Cuemon.Extensions.AspNetCore.dll
AcceptMimeTypesOrderedByQuality(HttpRequest)
Returns the MIME type types from the HTTP Accept header of the request, ordered by their quality values, e.g., preferred MIME types are first.
public static IEnumerable<string> AcceptMimeTypesOrderedByQuality(this HttpRequest request)
Parameters
requestHttpRequestThe HttpRequest to extend.
Returns
- IEnumerable<string>
A sequence of strings representing the MIME types from the HTTP Accept header of the
request, ordered by their quality values.