Exemplo n.º 1
0
 internal void Add(HandlerEntry entry)
 {
     if (!HandlerEntries.ContainsKey(entry.Method))
     {
         HandlerEntries.Add(entry.Method, new List <HandlerEntry>());
     }
     HandlerEntries[entry.Method].Add(entry);
 }
Exemplo n.º 2
0
 internal bool Match(HandlerEntry entry, string requestPath)
 {
     if (entry.Path == "*")
     {
         return(true);
     }
     if (entry.Path == requestPath)
     {
         return(true);
     }
     else
     {
         return(entry.Matches(requestPath));
     }
 }