ServiceStack.HttpRequestExtensions.IsContentType C# (CSharp) Method

IsContentType() public static method

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);
        }