lithium\net\http\Request::body()

public method

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

array

Source

	public function body($data = null, $options = []) {
		$defaults = ['encode' => true];
		return parent::body($data, $options + $defaults);
	}