Devmatic\InstantClick\Middleware\FilterIfInstantClick::filterResponse PHP Method

filterResponse() protected method

protected filterResponse ( Illuminate\Http\Response $response, string $container )
$response Illuminate\Http\Response
$container string
    protected function filterResponse(Response $response, $container)
    {
        $crawler = $this->getCrawler($response);
        $response->setContent($this->makeTitle($crawler) . $this->fetchContainer($crawler, $container));
        return $this;
    }