mini\Http\Message\Stream
class
Documentation
Describes a data stream.
Typically, an instance will wrap a PHP stream; this interface provides a wrapper around the most common operations, including serialization of the entire stream to a string.
Inheritance
Implements:
Psr\Http\Message\StreamInterface
Stringable
Uses Traits:
mini\Http\Message\StreamTrait
Properties (3)
mixed $stream
bool $active
int $offset
Methods (20)
Cast a value to a Stream instance.
Documentation missing
Documentation missing
Configure the StreamTrait
Reads all data from the stream into a string, from the beginning to end.
Returns the remaining contents in a string
Closes the stream and any underlying resources.
Separates any underlying resources from the stream.
Get the size of the stream if known.
Returns the current position of the file read/write pointer
Returns true if the stream is at the end of the stream.
Returns whether or not the stream is seekable.
Seek to a position in the stream.
Seek to the beginning of the stream.
Returns whether or not the stream is writable.
Write data to the stream.
Returns whether or not the stream is readable.
Read data from the stream.
Get stream metadata as an associative array or retrieve a specific key.
Documentation missing