protected function _buildContent(Request $request, $options)
    {
        $body = $request->getBody();
        if (empty($body)) {
            $this->_contextOptions['content'] = '';

            return;
        }
        $body->rewind();
        $this->_contextOptions['content'] = $body->getContents();
    }
protected function _buildContent(Request $request, $options)
    {
        $body = $request->getBody();
        if (empty($body)) {
            $this->_contextOptions['content'] = '';

            return;
        }
        $body->rewind();
        $this->_contextOptions['content'] = $body->getContents();
    }
protected function _buildContent ( Request $ request , $ options ) { $ body = $ request -> getBody ( ) ; if ( empty ( $ body ) ) { $ this -> _contextOptions [ 'content' ] = '' ; return ; } $ body -> rewind ( ) ; $ this -> _contextOptions [ 'content' ] = $ body -> getContents ( ) ; }
Builds the request content based on the request object.

If the $request->body() is a string, it will be used as is.
Array data will be processed with Cake\Http\Client\FormData

@param \Cake\Http\Client\Request $request The request being sent.
@param array $options Array of options to use.
@return void
Builds the request content based on the request object .