phasync
RequestBody / __construct

Method

RequestBody::__construct

Wrap the body of $request; nothing is read until the application reads.

Description#

public RequestBody::__construct(
    ClientRequest $request,
    ?int $size
)

Parameters#

$request ClientRequest
The exchange whose body this is
$size ?int
The body's size when the request declared it, null when it is chunked