Compile the HTTP message body, optionally encoding its parts according to content type.
public body ( mixed $data = null, array $options = [] ) : array |
$data |
mixed |
|
$options |
array |
- `'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 |
return |
array |
|