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;
    }