WordPress\AiClientDependencies\Psr\Http\Message

MessageInterface::withBodypublicWP 1.0

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.

Method of the class: MessageInterface{}

No Hooks.

Returns

static.

Usage

$MessageInterface = new MessageInterface();
$MessageInterface->withBody( $body ): MessageInterface;
$body(StreamInterface) (required)
Body.

MessageInterface::withBody() code WP 7.0

public function withBody(StreamInterface $body): MessageInterface;