HttpRequestJsonExtensions.HasJsonContentType(HttpRequest) Método

Definición

Comprueba el encabezado Content-Type para los tipos JSON.

public:
[System::Runtime::CompilerServices::Extension]
 static bool HasJsonContentType(Microsoft::AspNetCore::Http::HttpRequest ^ request);
public static bool HasJsonContentType (this Microsoft.AspNetCore.Http.HttpRequest request);
static member HasJsonContentType : Microsoft.AspNetCore.Http.HttpRequest -> bool
<Extension()>
Public Function HasJsonContentType (request As HttpRequest) As Boolean

Parámetros

request
HttpRequest

Devoluciones

true si el encabezado Content-Type representa un tipo de contenido JSON; de lo contrario, false.

Se aplica a