lithium\net\http\Message::_encode PHP Метод

_encode() защищенный Метод

Encode the body based on the content type
См. также: lithium\net\http\Message::type()
protected _encode ( mixed $body ) : string
$body mixed
Результат string
    protected function _encode($body)
    {
        $media = $this->_classes['media'];
        if ($media::type($this->_type)) {
            $encoded = $media::encode($this->_type, $body);
            $body = $encoded !== null ? $encoded : $body;
        }
        return $body;
    }