예제 #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));
        }
예제 #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);
        }
예제 #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);
        }