public
|
getBody(): StreamInterface
Gets the body of the message.
Gets the body of the message.
Returns
Returns the body as a stream.
Implements
|
#
|
public
|
withBody(StreamInterface|resource|string|null $body): MessageInterface
Return an instance with the specified message body.
Return an instance with the specified message body.
The body MUST be a StreamInterface object.
This method MUST be implemented in such a way as to retain the
immutability of the message, and MUST return a new instance that has the
new body stream.
Parameters
Implements
|
#
|
public
|
jsonSerialize(
): array{httpVersion: string, cookies: array<array{name: string, value: string, path?: string, domain?: string, expires?: string, httpOnly?: bool, secure?: bool}>, headers: array<array{name: string, value: string}>, headersSize: int, bodySize: int}
|
#
|