original_string: protected function _addProxy(Request $request, $options)
      {
          $auth = $options['proxy'];
          $adapter = $this->_createAuth($auth, $options);
          $result = $adapter->proxyAuthentication($request, $options['proxy']);
  
          return $result ?: $request;
      }
code: protected function _addProxy(Request $request, $options)
      {
          $auth = $options['proxy'];
          $adapter = $this->_createAuth($auth, $options);
          $result = $adapter->proxyAuthentication($request, $options['proxy']);
  
          return $result ?: $request;
      }
code_tokens: protected function _addProxy ( Request $ request , $ options ) { $ auth = $ options [ 'proxy' ] ; $ adapter = $ this -> _createAuth ( $ auth , $ options ) ; $ result = $ adapter -> proxyAuthentication ( $ request , $ options [ 'proxy' ] ) ; return $ result ? : $ request ; }
docstring: Add proxy authentication headers.
  
  Uses the authentication type to choose the correct strategy
  and use its methods to add headers.
  
  @param \Cake\Http\Client\Request $request The request to modify.
  @param array $options Array of options containing the 'proxy' key.
  @return \Cake\Http\Client\Request The updated request object.
docstring_tokens: Add proxy authentication headers .