WordPress\AiClientDependencies\Psr\Http\Message
MessageInterface::withBody
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.
Метод класса: MessageInterface{}
Хуков нет.
Возвращает
static.
Использование
$MessageInterface = new MessageInterface(); $MessageInterface->withBody( $body ): MessageInterface;
- $body(StreamInterface) (обязательный)
- Body.
Код MessageInterface::withBody() MessageInterface::withBody WP 7.1.2
public function withBody(StreamInterface $body): MessageInterface;