public function setCurlOptions(array $options) {
        return new Request([
            'method'              => $this->method,
            'url'                 => $this->url,
            'curlOptions'         => $options,
            'query'               => $this->query,
            'payload'             => $this->payload,
            'expectedStatusCodes' => $this->expectedStatusCodes
        ]);
    }
public function setCurlOptions(array $options) {
        return new Request([
            'method'              => $this->method,
            'url'                 => $this->url,
            'curlOptions'         => $options,
            'query'               => $this->query,
            'payload'             => $this->payload,
            'expectedStatusCodes' => $this->expectedStatusCodes
        ]);
    }
public function setCurlOptions ( array $ options ) { return new Request ( [ 'method' => $ this -> method , 'url' => $ this -> url , 'curlOptions' => $ options , 'query' => $ this -> query , 'payload' => $ this -> payload , 'expectedStatusCodes' => $ this -> expectedStatusCodes ] ) ; }
sets the curl options

@param  array $options
@return Request
sets the curl options