⚝
One Hat Cyber Team
⚝
Your IP:
160.79.111.115
Server IP:
162.254.39.145
Server:
Linux premium289.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
favoaysf
/
www
/
vendor
/
spatie
/
crawler
/
src
/
View File Name :
ResponseWithCachedBody.php
<?php namespace Spatie\Crawler; use GuzzleHttp\Psr7\Response; use Psr\Http\Message\ResponseInterface; class ResponseWithCachedBody extends Response { protected ?string $cachedBody = null; public static function fromGuzzlePsr7Response(ResponseInterface $response): static { return new static( $response->getStatusCode(), $response->getHeaders(), $response->getBody(), $response->getProtocolVersion(), $response->getReasonPhrase() ); } public function setCachedBody(?string $body = null): void { $this->cachedBody = $body; } public function getCachedBody(): ?string { return $this->cachedBody; } }