Exception
7 months ago
AppendStream.php
7 months ago
BufferStream.php
7 months ago
CachingStream.php
7 months ago
DroppingStream.php
7 months ago
FnStream.php
7 months ago
Header.php
7 months ago
HttpFactory.php
7 months ago
InflateStream.php
7 months ago
LazyOpenStream.php
7 months ago
LimitStream.php
7 months ago
Message.php
7 months ago
MessageTrait.php
7 months ago
MimeType.php
7 months ago
MultipartStream.php
7 months ago
NoSeekStream.php
7 months ago
PumpStream.php
7 months ago
Query.php
7 months ago
Request.php
7 months ago
Response.php
7 months ago
Rfc7230.php
7 months ago
ServerRequest.php
7 months ago
Stream.php
7 months ago
StreamDecoratorTrait.php
7 months ago
StreamWrapper.php
7 months ago
UploadedFile.php
7 months ago
Uri.php
7 months ago
UriComparator.php
7 months ago
UriNormalizer.php
7 months ago
UriResolver.php
7 months ago
Utils.php
7 months ago
NoSeekStream.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AmeliaVendor\GuzzleHttp\Psr7; |
| 6 | |
| 7 | use AmeliaVendor\Psr\Http\Message\StreamInterface; |
| 8 | |
| 9 | /** |
| 10 | * Stream decorator that prevents a stream from being seeked. |
| 11 | */ |
| 12 | final class NoSeekStream implements StreamInterface |
| 13 | { |
| 14 | use StreamDecoratorTrait; |
| 15 | |
| 16 | /** @var StreamInterface */ |
| 17 | private $stream; |
| 18 | |
| 19 | public function seek($offset, $whence = SEEK_SET): void |
| 20 | { |
| 21 | throw new \RuntimeException('Cannot seek a NoSeekStream'); |
| 22 | } |
| 23 | |
| 24 | public function isSeekable(): bool |
| 25 | { |
| 26 | return false; |
| 27 | } |
| 28 | } |
| 29 |