Home > PHP > Function > > HttpMessage::setBody()

HttpMessage::setBody()

HttpMessage::setBody - Set message body

Syntax

public HttpMessage::setBody (string $body)

Arguments

  • body - the new body of the message

Description

Set the body of the HttpMessage.

Version

PHP PECL pecl_http >= 0.14.0

Return value