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

public method

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

array

Source

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