Lines Matching defs:options
18 private $options;
21 public function __construct(array $options = [])
23 $this->options = $options;
204 $options = $this->getDefaultOptions($request);
210 $this->{$method}($request, $options, $value, $params);
218 $options,
219 $this->createContext($request, $options, $params)
256 private function add_proxy(array $request, &$options, $value, &$params)
259 $options['http']['proxy'] = $value;
263 $options['http']['proxy'] = $value[$scheme];
268 private function add_timeout(array $request, &$options, $value, &$params)
270 $options['http']['timeout'] = $value;
273 private function add_verify(array $request, &$options, $value, &$params)
279 $options['ssl']['cafile'] = ClientUtils::getDefaultCaBundle();
282 $options['ssl']['cafile'] = $value;
287 $options['ssl']['verify_peer'] = false;
288 $options['ssl']['allow_self_signed'] = true;
294 $options['ssl']['verify_peer'] = true;
295 $options['ssl']['allow_self_signed'] = false;
298 private function add_cert(array $request, &$options, $value, &$params)
301 $options['ssl']['passphrase'] = $value[1];
309 $options['ssl']['local_cert'] = $value;
312 private function add_progress(array $request, &$options, $value, &$params)
326 private function add_debug(array $request, &$options, $value, &$params)
366 private function applyCustomOptions(array $request, array &$options)
376 $options = array_replace_recursive(
377 $options,
382 private function createContext(array $request, array $options, array $params)
384 $this->applyCustomOptions($request, $options);
386 function () use ($request, $options, $params) {
387 return stream_context_create($options, $params);
390 $options
397 array $options,
411 $options