private bool TryFindMethod(Route route, string[] pathParts, out string methodName)
 {
     string defaultMethod = string.Empty;
     if (pathParts.Length > 1 && pathParts[1] != string.Empty)
     {
         foreach (string method in route.Methods)
         {
             if (pathParts[1] == method)
             {
                 methodName = method;
                 return true;
             }
         }
     }
     else
     {
         foreach (string method in route.Methods)
         {
             if (method == DefaultMethodName)
             {
                 methodName = method;
                 return true;
             }
         }
     }
     methodName = string.Empty;
     return false;
 }
 public RequestRoute(Route route, string methodName)
 {
     Route = route;
     MethodName = methodName;
 }