original_string: protected function _buildContent(Request $request, $options)
      {
          $body = $request->getBody();
          if (empty($body)) {
              $this->_contextOptions['content'] = '';
  
              return;
          }
          $body->rewind();
          $this->_contextOptions['content'] = $body->getContents();
      }
code: protected function _buildContent(Request $request, $options)
      {
          $body = $request->getBody();
          if (empty($body)) {
              $this->_contextOptions['content'] = '';
  
              return;
          }
          $body->rewind();
          $this->_contextOptions['content'] = $body->getContents();
      }
code_tokens: protected function _buildContent ( Request $ request , $ options ) { $ body = $ request -> getBody ( ) ; if ( empty ( $ body ) ) { $ this -> _contextOptions [ 'content' ] = '' ; return ; } $ body -> rewind ( ) ; $ this -> _contextOptions [ 'content' ] = $ body -> getContents ( ) ; }
docstring: 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
docstring_tokens: Builds the request content based on the request object .