Extends
lithium\net\http\Message
Decodes the body based on the type
Parameters
- string $body
Returns
mixedSource
protected function _decode($body) {
$media = $this->_classes['media'];
if ($type = $media::type($this->_type)) {
$body = $media::decode($this->_type, $body) ?: $body;
}
return $body;
}