public function setCurlOptions(array $curlOptions = []): RequestContext
    {
        $this->curlOptions = [];

        foreach ($curlOptions as $name => $value) {
            $this->setCurlOption($name, $value);
        }

        return $this;
    }
public function setCurlOptions(array $curlOptions = []): RequestContext
    {
        $this->curlOptions = [];

        foreach ($curlOptions as $name => $value) {
            $this->setCurlOption($name, $value);
        }

        return $this;
    }
public function setCurlOptions ( array $ curlOptions = [ ] ) : RequestContext { $ this -> curlOptions = [ ] ; foreach ( $ curlOptions as $ name => $ value ) { $ this -> setCurlOption ( $ name , $ value ) ; } return $ this ; }
Set an array of CURL options for context. Please note, that old options would be removed or overwritten

@param array $curlOptions

@throws RequestContextException

@return RequestContext
Set an array of CURL options for context . Please note that old options would be removed or overwritten