lithium\net\http\Message::_decode()

protected method

Decode the body based on the content type

Parameters

  • string $body

Returns

mixed

Source

	protected function _decode($body) {
		$media = $this->_classes['media'];

		if ($media::type($this->_type)) {
			$decoded = $media::decode($this->_type, $body);
			$body = $decoded !== null ? $decoded : $body;
		}
		return $body;
	}