original_string: protected function _buildOptions(Request $request, $options)
      {
          $this->_contextOptions['method'] = $request->getMethod();
          $this->_contextOptions['protocol_version'] = $request->getProtocolVersion();
          $this->_contextOptions['ignore_errors'] = true;
  
          if (isset($options['timeout'])) {
              $this->_contextOptions['timeout'] = $options['timeout'];
          }
          // Redirects are handled in the client layer because of cookie handling issues.
          $this->_contextOptions['max_redirects'] = 0;
  
          if (isset($options['proxy']['proxy'])) {
              $this->_contextOptions['request_fulluri'] = true;
              $this->_contextOptions['proxy'] = $options['proxy']['proxy'];
          }
      }
code: protected function _buildOptions(Request $request, $options)
      {
          $this->_contextOptions['method'] = $request->getMethod();
          $this->_contextOptions['protocol_version'] = $request->getProtocolVersion();
          $this->_contextOptions['ignore_errors'] = true;
  
          if (isset($options['timeout'])) {
              $this->_contextOptions['timeout'] = $options['timeout'];
          }
          // Redirects are handled in the client layer because of cookie handling issues.
          $this->_contextOptions['max_redirects'] = 0;
  
          if (isset($options['proxy']['proxy'])) {
              $this->_contextOptions['request_fulluri'] = true;
              $this->_contextOptions['proxy'] = $options['proxy']['proxy'];
          }
      }
code_tokens: protected function _buildOptions ( Request $ request , $ options ) { $ this -> _contextOptions [ 'method' ] = $ request -> getMethod ( ) ; $ this -> _contextOptions [ 'protocol_version' ] = $ request -> getProtocolVersion ( ) ; $ this -> _contextOptions [ 'ignore_errors' ] = true ; if ( isset ( $ options [ 'timeout' ] ) ) { $ this -> _contextOptions [ 'timeout' ] = $ options [ 'timeout' ] ; } // Redirects are handled in the client layer because of cookie handling issues. $ this -> _contextOptions [ 'max_redirects' ] = 0 ; if ( isset ( $ options [ 'proxy' ] [ 'proxy' ] ) ) { $ this -> _contextOptions [ 'request_fulluri' ] = true ; $ this -> _contextOptions [ 'proxy' ] = $ options [ 'proxy' ] [ 'proxy' ] ; } }
docstring: Build miscellaneous options for the request.
  
  @param \Cake\Http\Client\Request $request The request being sent.
  @param array $options Array of options to use.
  @return void
docstring_tokens: Build miscellaneous options for the request .