yii\httpclient\Request::setOptions PHP Method

setOptions() public method

- proxy: string, URI specifying address of proxy server. (e.g. tcp://proxy.example.com:5100). - userAgent: string, the contents of the "User-Agent: " header to be used in a HTTP request. - followLocation: bool, whether to follow any "Location: " header that the server sends as part of the HTTP header. - maxRedirects: int, the max number of redirects to follow. - protocolVersion: float|string, HTTP protocol version. - sslVerifyPeer: bool, whether verification of the peer's certificate should be performed. - sslCafile: string, location of Certificate Authority file on local filesystem which should be used with the 'sslVerifyPeer' option to authenticate the identity of the remote peer. - sslCapath: string, a directory that holds multiple CA certificates. You may set options using keys, which are specific to particular transport, like [CURLOPT_VERBOSE => true] in case there is a necessity for it.
public setOptions ( array $options )
$options array request options.
    public function setOptions(array $options)
    {
        $this->_options = $options;
        return $this;
    }