private static string ToVerbsString(this ApplyTo verbs)
        {
            var allowedMethods = new List <string>();

            if (verbs.Has(ApplyTo.Get))
            {
                allowedMethods.Add(HttpMethods.Get);
            }
            if (verbs.Has(ApplyTo.Post))
            {
                allowedMethods.Add(HttpMethods.Post);
            }
            if (verbs.Has(ApplyTo.Put))
            {
                allowedMethods.Add(HttpMethods.Put);
            }
            if (verbs.Has(ApplyTo.Delete))
            {
                allowedMethods.Add(HttpMethods.Delete);
            }
            if (verbs.Has(ApplyTo.Patch))
            {
                allowedMethods.Add(HttpMethods.Patch);
            }

            return(string.Join(" ", allowedMethods.ToArray()));
        }
        private static string ToVerbsString(this ApplyTo verbs)
        {
            var allowedMethods = new List<string>();
            foreach (var entry in ApplyToUtils.ApplyToVerbs)
            {
                if (verbs.Has(entry.Key))
                    allowedMethods.Add(entry.Value);
            }

            return string.Join(" ", allowedMethods.ToArray());
        }
        public static string ToVerbsString(this ApplyTo applyTo)
        {
            var allowedMethods = new List <string>();

            foreach (var entry in ApplyToUtils.ApplyToVerbs)
            {
                if (applyTo.Has(entry.Key))
                {
                    allowedMethods.Add(entry.Value);
                }
            }

            return(string.Join(" ", allowedMethods.ToArray()));
        }