lithium\net\http\Request::body()
Overrides
lithium\net\Message::body()
Compile the HTTP message body, optionally encoding 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 = ['encode' => true];
return parent::body($data, $options + $defaults);
}