public static MethodType? StringToMethodType()

in aliyun-net-credentials/Utils/ParameterHelper.cs [84:104]


        public static MethodType? StringToMethodType(string method)
        {
            method = method.ToUpper();
            switch (method)
            {
                case "GET":
                    return MethodType.GET;
                case "PUT":
                    return MethodType.PUT;
                case "POST":
                    return MethodType.POST;
                case "DELETE":
                    return MethodType.DELETE;
                case "HEAD":
                    return MethodType.HEAD;
                case "OPTIONS":
                    return MethodType.OPTIONS;
                default:
                    return null;
            }
        }