JacobBennett\Http2ServerPush\Middleware\AddHttp2ServerPush::fetchLinkableNodes PHP Method

fetchLinkableNodes() protected method

Get all nodes we are interested in pushing.
protected fetchLinkableNodes ( Illuminate\Http\Response $response ) : Collection
$response Illuminate\Http\Response
return Illuminate\Support\Collection
    protected function fetchLinkableNodes($response)
    {
        $crawler = $this->getCrawler($response);
        return collect($crawler->filter('link, script[src], img[src]')->extract(['src', 'href']));
    }