Example #1
0
        private static ResolveResult BuildOptionsResult(IEnumerable <string> allowedMethods, NancyContext context)
        {
            var path =
                context.Request.Path;

            var optionsResult =
                new OptionsRoute(path, allowedMethods);

            return(new ResolveResult(
                       optionsResult,
                       new DynamicDictionary(),
                       null,
                       null,
                       null));
        }
Example #2
0
        private ResolveResult BuildOptionsResult(NancyContext context)
        {
            var path = context.Request.Path;

            var options = this.trie.GetOptions(path, context);

            var optionsResult = new OptionsRoute(path, options);

            return new ResolveResult(
                            optionsResult,
                            new DynamicDictionary(),
                            null,
                            null,
                            null);
        }
Example #3
0
        private ResolveResult BuildOptionsResult(NancyContext context)
        {
            var path = context.Request.Path;

            var options = this.trie.GetOptions(path, context);

            var optionsResult = new OptionsRoute(path, options);

            return(new ResolveResult(
                       optionsResult,
                       new DynamicDictionary(),
                       null,
                       null,
                       null));
        }
        private static ResolveResult BuildOptionsResult(IEnumerable<string> allowedMethods, NancyContext context)
        {
            var path =
                context.Request.Path;

            var optionsResult =
                new OptionsRoute(path, allowedMethods);

            return new ResolveResult(
                optionsResult,
                new DynamicDictionary(),
                null,
                null,
                null);
        }