Skip to content

Core\Http\Stream

A reply whose body is read while it arrives. status() and the header methods work at any time. The body can be read once, with one of events(), lines(), chunks() or saveTo().

Returned by

You get a Core\Http\Stream from these methods:

Members

7 members.

MemberSignature
statusstatus(): int
headerheader(string $name): ?tainted string
headersheaders(string $name): array<tainted string>
eventsevents(): Core\Http\Events
lineslines(): Core\Http\Lines
chunkschunks(): Core\Http\Chunks
saveTosaveTo(string $path, uint $max): void