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: StreamDecoratorTrait.php
Close
<?php declare(strict_types=1); namespace GuzzleHttp\Psr7; use Psr\Http\Message\StreamInterface; /** * Stream decorator trait * * @property StreamInterface $stream */ trait StreamDecoratorTrait { /** * @param StreamInterface $stream Stream to decorate */ public function __construct(StreamInterface $stream) { $this->stream = $stream; } /** * Magic method used to create a new stream if streams are not added in * the constructor of a decorator (e.g., LazyOpenStream). * * @return StreamInterface */ public function __get(string $name) { if ($name === 'stream') { $this->stream = $this->createStream(); return $this->stream; } throw new \UnexpectedValueException("$name not found on class"); } public function __toString(): string { try { if ($this->isSeekable()) { $this->seek(0); } return $this->getContents(); } catch (\Throwable $e) { if (\PHP_VERSION_ID >= 70400) { throw $e; } trigger_error(sprintf('%s::__toString exception: %s', self::class, (string) $e), E_USER_ERROR); return ''; } } public function getContents(): string { return Utils::copyToString($this); } /** * Allow decorators to implement custom methods * * @return mixed */ public function __call(string $method, array $args) { /** @var callable $callable */ $callable = [$this->stream, $method]; $result = ($callable)(...$args); // Always return the wrapped object if the result is a return $this return $result === $this->stream ? $this : $result; } public function close(): void { $this->stream->close(); } /** * @return mixed */ public function getMetadata($key = null) { return $this->stream->getMetadata($key); } public function detach() { return $this->stream->detach(); } public function getSize(): ?int { return $this->stream->getSize(); } public function eof(): bool { return $this->stream->eof(); } public function tell(): int { return $this->stream->tell(); } public function isReadable(): bool { return $this->stream->isReadable(); } public function isWritable(): bool { return $this->stream->isWritable(); } public function isSeekable(): bool { return $this->stream->isSeekable(); } public function rewind(): void { $this->seek(0); } public function seek($offset, $whence = SEEK_SET): void { $this->stream->seek($offset, $whence); } public function read($length): string { return $this->stream->read($length); } public function write($string): int { return $this->stream->write($string); } /** * Implement in subclasses to dynamically create streams when requested. * * @throws \BadMethodCallException */ protected function createStream(): StreamInterface { throw new \BadMethodCallException('Not implemented'); } }