final public function routeRequest()

in src/router/BaseRouter.php [47:58]


  final public function routeRequest(
    \Facebook\Experimental\Http\Message\RequestInterface $request,
  ): (TResponder, ImmMap<string, string>) {
    $method = HttpMethod::coerce($request->getMethod());
    if ($method === null) {
      throw new MethodNotAllowedException(
        $this->getAllowedMethods($request->getUri()->getPath()),
      );
    }

    return $this->routeMethodAndPath($method, $request->getUri()->getPath());
  }