src/curlient/Curlient.php
public function setup($options = []) {
		if ($options) {
			if (isset($options[ CURLOPT_COOKIE ])) {
				$this->cookie = array_merge($this->cookie, $options[ CURLOPT_COOKIE ]);
				unset($options[ CURLOPT_COOKIE ]);
			}
			if (isset($options[ CURLOPT_HTTPHEADER ])) {
				$this->header = array_merge($this->header, $options[ CURLOPT_HTTPHEADER ]);
				unset($options[ CURLOPT_HTTPHEADER ]);
			}
			$this->options = array_merge($this->options, $options);
			curl_setopt_array($this->curl, $options);
		}

		return $this;
	}
public function setup($options = []) {
		if ($options) {
			if (isset($options[ CURLOPT_COOKIE ])) {
				$this->cookie = array_merge($this->cookie, $options[ CURLOPT_COOKIE ]);
				unset($options[ CURLOPT_COOKIE ]);
			}
			if (isset($options[ CURLOPT_HTTPHEADER ])) {
				$this->header = array_merge($this->header, $options[ CURLOPT_HTTPHEADER ]);
				unset($options[ CURLOPT_HTTPHEADER ]);
			}
			$this->options = array_merge($this->options, $options);
			curl_setopt_array($this->curl, $options);
		}

		return $this;
	}
设置curl.

@param array $options

@return \curlient\Curlient