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