public static IsContentType ( this request, string contentType ) : bool | ||
request | this | |
contentType | string | |
return | bool |
public static bool IsContentType(this IRequest request, string contentType)
{
return request.ContentType.StartsWith(contentType, StringComparison.OrdinalIgnoreCase);
}