ServiceStack.UrlExtensions.HasRequestBody C# (CSharp) Метод

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

public static HasRequestBody ( this httpMethod ) : bool
httpMethod this
Результат bool
        public static bool HasRequestBody(this string httpMethod)
        {
            switch (httpMethod)
            {
                case HttpMethods.Get:
                case HttpMethods.Delete:
                case HttpMethods.Head:
                case HttpMethods.Options:
                    return false;
            }

            return true;
        }