Property | Type | Description | |
---|---|---|---|
$crawler | The DomCrawler instance. |
Method | Description | |
---|---|---|
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed | Handle an incoming request. |
Method | Description | |
---|---|---|
fetchLinkableNodes ( Illuminate\Http\Response $response ) : |
Get all nodes we are interested in pushing. | |
generateAndAttachLinkHeaders ( Illuminate\Http\Response $response ) | ||
getCrawler ( Illuminate\Http\Response $response ) : |
Get the DomCrawler instance. |
Method | Description | |
---|---|---|
addLinkHeader ( Illuminate\Http\Response $response, $link ) | Add Link Header | |
buildLinkHeaderString ( string $url ) : string | Build out header string based on asset extension. |
protected fetchLinkableNodes ( Illuminate\Http\Response $response ) : |
||
$response | Illuminate\Http\Response | |
return |
protected generateAndAttachLinkHeaders ( Illuminate\Http\Response $response ) | ||
$response | Illuminate\Http\Response |
protected getCrawler ( Illuminate\Http\Response $response ) : |
||
$response | Illuminate\Http\Response | |
return |