OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
znew1aws-ses
/
vendor
/
guzzlehttp
/
psr7
/
src
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/16/2024 08:30:19 AM
rwxr-xr-x
📄
AppendStream.php
6.05 KB
08/16/2024 08:27:48 AM
rw-r--r--
📄
BufferStream.php
3.28 KB
08/16/2024 08:27:48 AM
rw-r--r--
📄
CachingStream.php
4.63 KB
08/16/2024 08:27:48 AM
rw-r--r--
📄
DroppingStream.php
1.22 KB
08/16/2024 08:27:48 AM
rw-r--r--
📁
Exception
-
08/16/2024 08:30:19 AM
rwxr-xr-x
📄
FnStream.php
4.38 KB
08/16/2024 08:27:49 AM
rw-r--r--
📄
Header.php
3.98 KB
08/16/2024 08:27:49 AM
rw-r--r--
📄
HttpFactory.php
3.09 KB
08/16/2024 08:27:49 AM
rw-r--r--
📄
InflateStream.php
1.42 KB
08/16/2024 08:27:49 AM
rw-r--r--
📄
LazyOpenStream.php
1.11 KB
08/16/2024 08:27:49 AM
rw-r--r--
📄
LimitStream.php
4.35 KB
08/16/2024 08:27:49 AM
rw-r--r--
📄
Message.php
8.38 KB
08/16/2024 08:27:50 AM
rw-r--r--
📄
MessageTrait.php
7.82 KB
08/16/2024 08:27:50 AM
rw-r--r--
📄
MimeType.php
54.98 KB
08/16/2024 08:27:50 AM
rw-r--r--
📄
MultipartStream.php
5.22 KB
08/16/2024 08:27:50 AM
rw-r--r--
📄
NoSeekStream.php
552 bytes
08/16/2024 08:27:50 AM
rw-r--r--
📄
PumpStream.php
4.67 KB
08/16/2024 08:27:50 AM
rw-r--r--
📄
Query.php
3.67 KB
08/16/2024 08:27:50 AM
rw-r--r--
📄
Request.php
3.97 KB
08/16/2024 08:27:50 AM
rw-r--r--
📄
Response.php
4.95 KB
08/16/2024 08:27:51 AM
rw-r--r--
📄
Rfc7230.php
684 bytes
08/16/2024 08:27:51 AM
rw-r--r--
📄
ServerRequest.php
9.66 KB
08/16/2024 08:27:51 AM
rw-r--r--
📄
Stream.php
7.49 KB
08/16/2024 08:27:51 AM
rw-r--r--
📄
StreamDecoratorTrait.php
3.39 KB
08/16/2024 08:27:51 AM
rw-r--r--
📄
StreamWrapper.php
4.65 KB
08/16/2024 08:27:51 AM
rw-r--r--
📄
UploadedFile.php
4.96 KB
08/16/2024 08:27:52 AM
rw-r--r--
📄
Uri.php
22.17 KB
08/16/2024 08:27:52 AM
rw-r--r--
📄
UriComparator.php
1.17 KB
08/16/2024 08:27:52 AM
rw-r--r--
📄
UriNormalizer.php
8.48 KB
08/16/2024 08:27:52 AM
rw-r--r--
📄
UriResolver.php
8.58 KB
08/16/2024 08:27:52 AM
rw-r--r--
📄
Utils.php
15.66 KB
08/16/2024 08:27:52 AM
rw-r--r--
Editing: DroppingStream.php
Close
<?php declare(strict_types=1); namespace GuzzleHttp\Psr7; use Psr\Http\Message\StreamInterface; /** * Stream decorator that begins dropping data once the size of the underlying * stream becomes too full. */ final class DroppingStream implements StreamInterface { use StreamDecoratorTrait; /** @var int */ private $maxLength; /** @var StreamInterface */ private $stream; /** * @param StreamInterface $stream Underlying stream to decorate. * @param int $maxLength Maximum size before dropping data. */ public function __construct(StreamInterface $stream, int $maxLength) { $this->stream = $stream; $this->maxLength = $maxLength; } public function write($string): int { $diff = $this->maxLength - $this->stream->getSize(); // Begin returning 0 when the underlying stream is too large. if ($diff <= 0) { return 0; } // Write the stream or a subset of the stream if needed. if (strlen($string) < $diff) { return $this->stream->write($string); } return $this->stream->write(substr($string, 0, $diff)); } }