lithium\net\http\Message::_decode()
Decode the body based on the content type
Parameters
-
string
$body
Returns
mixedSource
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;
}