mdref.json config
[mdref/mdref-http] / http / Message / setBody.md
1 # http\Message http\Message::setBody(http\Message\Body $body)
2
3 Set the message's body.
4 See http\Message::getBody() and http\Message::addBody().
5
6 ## Params:
7
8 * http\Message\Body $body
9 The new message body.
10
11 ## Returns:
12
13 * http\Message, self.
14
15 ## Throws:
16
17 * http\Exception\InvalidArgumentException
18 * http\Exception\UnexpectedValueException