lithium\net\http\Response::body()
Overrides
lithium\net\Message::body()
Add data to or compile and return the HTTP message body, optionally decoding its parts according to content type.
Parameters
-
mixed
$data -
array
$options'buffer'integer: split the body string'encode'boolean: encode the body based on the content type'decode'boolean: decode the body based on the content type
Returns
arraySource
public function body($data = null, $options = []) {
$defaults = ['decode' => true];
return parent::body($data, $options + $defaults);
}