Table of Contents

AcceptMimeTypesOrderedByQuality Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Http
Assemblies
Cuemon.Extensions.AspNetCore.dll
Source
src/Cuemon.Extensions.AspNetCore/Http/HttpRequestExtensions.cs

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

request HttpRequest

The 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.