HttpMessage::send
HttpMessage::setHeaders
The HttpMessage class
PHP Manual

# HttpMessage::setBody

(PECL pecl_http >= 0.14.0)

HttpMessage::setBody — Set message body

### Descrição

public void HttpMessage::setBody ( string `$body` )

Set the body of the HttpMessage.

> Nota: Don't forget to update any headers accordingly.

### Parâmetros

`body`

  the new body of the message

HttpMessage::send
HttpMessage::setHeaders
The HttpMessage class
PHP Manual