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)); }
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 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); }