Beispiel #1
0
 internal void Add(HandlerEntry entry)
 {
     if (!HandlerEntries.ContainsKey(entry.Method))
     {
         HandlerEntries.Add(entry.Method, new List <HandlerEntry>());
     }
     HandlerEntries[entry.Method].Add(entry);
 }
Beispiel #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));
     }
 }