private function handleRequest(array $middlewares): void
    {
        $requestHandler = new RequestHandler($this->container, $middlewares);

        $this->response = $requestHandler->handle($this->request);
    }