def match(env)
      routes[env[Rack::REQUEST_METHOD]]
        .lazy # Lazy to avoid unnecessary calls to #match.
        .map { |r| r.match(env) }
        .find { |r| !r.nil? }
    end
def match(env)
      routes[env[Rack::REQUEST_METHOD]]
        .lazy # Lazy to avoid unnecessary calls to #match.
        .map { |r| r.match(env) }
        .find { |r| !r.nil? }
    end
Tries to match against a Rack environment.
 @param env [Hash] Rack environment
 @return [Route] matching route. Can be nil if no match found.