ServiceStack.HttpRequestExtensions.IsContentType C# (CSharp) Метод

IsContentType() публичный статический Метод

public static IsContentType ( this request, string contentType ) : bool
request this
contentType string
Результат bool
        public static bool IsContentType(this IRequest request, string contentType)
        {
            return request.ContentType.StartsWith(contentType, StringComparison.OrdinalIgnoreCase);
        }