The interface of chunks returned by ResponseStreamInterface::current().
When the chunk is first, last or timeout, the content MUST be empty. When an unchecked timeout or a network error occurs, a TransportExceptionInterface MUST be thrown by the destructor unless one was already thrown by another method.
Methods | ||
---|---|---|
public
|
isTimeout(): bool
|
# |
public
|
isFirst(): bool
|
# |
public
|
isLast(): bool
|
# |
public
|
getInformationalStatus(): ?array
|
# |
public
|
getContent(): string
|
# |
public
|
getOffset(): int
|
# |
public
|
getError(): ?string
|
# |