Lines Matching refs:options
34 public function create(RequestInterface $request, array $options) argument
36 if (isset($options['curl']['body_as_string'])) {
37 $options['_body_as_string'] = $options['curl']['body_as_string'];
38 unset($options['curl']['body_as_string']);
43 $easy->options = $options;
51 if (isset($options['curl'])) {
52 $conf = array_replace($conf, $options['curl']);
100 if (isset($easy->options['on_stats'])) {
131 call_user_func($easy->options['on_stats'], $stats);
149 if (empty($easy->options['_err_message'])
239 $this->applyBody($easy->request, $easy->options, $conf);
260 private function applyBody(RequestInterface $request, array $options, array &$conf) argument
269 !empty($options['_body_as_string'])
326 * @param array $options Array of options to modify
328 private function removeHeader($name, array &$options) argument
330 foreach (array_keys($options['_headers']) as $key) {
332 unset($options['_headers'][$key]);
340 $options = $easy->options;
341 if (isset($options['verify'])) {
342 if ($options['verify'] === false) {
349 if (is_string($options['verify'])) {
351 if (!file_exists($options['verify'])) {
353 "SSL CA bundle not found: {$options['verify']}"
358 if (is_dir($options['verify']) ||
359 (is_link($options['verify']) && is_dir(readlink($options['verify'])))) {
360 $conf[CURLOPT_CAPATH] = $options['verify'];
362 $conf[CURLOPT_CAINFO] = $options['verify'];
368 if (!empty($options['decode_content'])) {
379 if (isset($options['sink'])) {
380 $sink = $options['sink'];
403 if (isset($options['timeout'])) {
404 $timeoutRequiresNoSignal |= $options['timeout'] < 1;
405 $conf[CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000;
409 if (isset($options['force_ip_resolve'])) {
410 if ('v4' === $options['force_ip_resolve']) {
412 } elseif ('v6' === $options['force_ip_resolve']) {
417 if (isset($options['connect_timeout'])) {
418 $timeoutRequiresNoSignal |= $options['connect_timeout'] < 1;
419 $conf[CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000;
426 if (isset($options['proxy'])) {
427 if (!is_array($options['proxy'])) {
428 $conf[CURLOPT_PROXY] = $options['proxy'];
431 if (isset($options['proxy'][$scheme])) {
433 if (!isset($options['proxy']['no']) ||
434 !\GuzzleHttp\is_host_in_noproxy($host, $options['proxy']['no'])
436 $conf[CURLOPT_PROXY] = $options['proxy'][$scheme];
442 if (isset($options['cert'])) {
443 $cert = $options['cert'];
456 if (isset($options['ssl_key'])) {
457 if (is_array($options['ssl_key'])) {
458 if (count($options['ssl_key']) === 2) {
459 list($sslKey, $conf[CURLOPT_SSLKEYPASSWD]) = $options['ssl_key'];
461 list($sslKey) = $options['ssl_key'];
465 $sslKey = isset($sslKey) ? $sslKey: $options['ssl_key'];
475 if (isset($options['progress'])) {
476 $progress = $options['progress'];
493 if (!empty($options['debug'])) {
494 $conf[CURLOPT_STDERR] = \GuzzleHttp\debug_resource($options['debug']);
528 if (!isset($easy->options['_curl_retries'])) {
529 $easy->options['_curl_retries'] = 1;
530 } elseif ($easy->options['_curl_retries'] == 2) {
539 $easy->options['_curl_retries']++;
542 return $handler($easy->request, $easy->options);
547 if (isset($easy->options['on_headers'])) {
548 $onHeaders = $easy->options['on_headers'];