protected function _addProxy(Request $request, $options)
    {
        $auth = $options['proxy'];
        $adapter = $this->_createAuth($auth, $options);
        $result = $adapter->proxyAuthentication($request, $options['proxy']);

        return $result ?: $request;
    }
protected function _addProxy(Request $request, $options)
    {
        $auth = $options['proxy'];
        $adapter = $this->_createAuth($auth, $options);
        $result = $adapter->proxyAuthentication($request, $options['proxy']);

        return $result ?: $request;
    }
protected function _addProxy ( Request $ request , $ options ) { $ auth = $ options [ 'proxy' ] ; $ adapter = $ this -> _createAuth ( $ auth , $ options ) ; $ result = $ adapter -> proxyAuthentication ( $ request , $ options [ 'proxy' ] ) ; return $ result ? : $ request ; }
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.
Add proxy authentication headers .