IterableStream
in package
implements
ReadOnceResultStream, RequestStream
FinalYes
Convert an iterator into a Stream.
Tags
Table of Contents
Interfaces
- ReadOnceResultStream
- Marker for ResultStream that can be read only once.
- RequestStream
- Provides method to convert a input into string or chunks.
Properties
- $content : iterable<string|int, string>
Methods
- create() : IterableStream
- getIterator() : Traversable
- hash() : string
- length() : int|null
- Length in bytes.
- stringify() : string
- __construct() : mixed
Properties
$content
private
iterable<string|int, string>
$content
Methods
create()
public
static create(self|iterable<string|int, string> $content) : IterableStream
Parameters
- $content : self|iterable<string|int, string>
Return values
IterableStreamgetIterator()
public
getIterator() : Traversable
Return values
Traversablehash()
public
hash([string $algo = 'sha256' ][, bool $raw = false ]) : string
Parameters
- $algo : string = 'sha256'
- $raw : bool = false
Return values
stringlength()
Length in bytes.
public
length() : int|null
Return values
int|nullstringify()
public
stringify() : string
Return values
string__construct()
private
__construct(iterable<string|int, string> $content) : mixed
Parameters
- $content : iterable<string|int, string>