REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 808 B
Close
/proc/thread-self/root/home/byroehnu/easetack.com/vendor/spatie/crawler/src/Handlers/CrawlRequestFailed.php
Text
Base64
<?php namespace Spatie\Crawler\Handlers; use Exception; use GuzzleHttp\Exception\ConnectException; use GuzzleHttp\Exception\RequestException; use Spatie\Crawler\Crawler; class CrawlRequestFailed { public function __construct(protected Crawler $crawler) { // } public function __invoke(Exception $exception, $index) { if ($exception instanceof ConnectException) { $exception = new RequestException($exception->getMessage(), $exception->getRequest()); } if ($exception instanceof RequestException) { $crawlUrl = $this->crawler->getCrawlQueue()->getUrlById($index); $this->crawler->getCrawlObservers()->crawlFailed($crawlUrl, $exception); } usleep($this->crawler->getDelayBetweenRequests()); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
CrawlRequestFailed.php
808 B
lrw-rw-rw-
2025-02-24 09:20:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CrawlRequestFulfilled.php
5.04 KB
lrw-rw-rw-
2025-02-24 09:20:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).