The HttpMessage class
PHP Manual

HttpMessage::setBody

(PECL pecl_http:0.14.0-1.5.5)

HttpMessage::setBodySet message body

Описание

public void HttpMessage::setBody ( string $body )

Set the body of the HttpMessage.

Замечание: Don't forget to update any headers accordingly.

Список параметров

body

the new body of the message


The HttpMessage class
PHP Manual