src/Guzzle/Stream/PhpStreamRequestFactory.php
protected function setContextValue($wrapper, $name, $value, $overwrite = false)
    {
        if (!isset($this->contextOptions[$wrapper])) {
            $this->contextOptions[$wrapper] = array($name => $value);
        } elseif (!$overwrite && isset($this->contextOptions[$wrapper][$name])) {
            return;
        }
        $this->contextOptions[$wrapper][$name] = $value;
        stream_context_set_option($this->context, $wrapper, $name, $value);
    }
protected function setContextValue($wrapper, $name, $value, $overwrite = false)
    {
        if (!isset($this->contextOptions[$wrapper])) {
            $this->contextOptions[$wrapper] = array($name => $value);
        } elseif (!$overwrite && isset($this->contextOptions[$wrapper][$name])) {
            return;
        }
        $this->contextOptions[$wrapper][$name] = $value;
        stream_context_set_option($this->context, $wrapper, $name, $value);
    }
protected function setContextValue ( $ wrapper , $ name , $ value , $ overwrite = false ) { if ( ! isset ( $ this -> contextOptions [ $ wrapper ] ) ) { $ this -> contextOptions [ $ wrapper ] = array ( $ name => $ value ) ; } elseif ( ! $ overwrite && isset ( $ this -> contextOptions [ $ wrapper ] [ $ name ] ) ) { return ; } $ this -> contextOptions [ $ wrapper ] [ $ name ] = $ value ; stream_context_set_option ( $ this -> context , $ wrapper , $ name , $ value ) ; }
Set an option on the context and the internal options array

@param string $wrapper   Stream wrapper name of http
@param string $name      Context name
@param mixed  $value     Context value
@param bool   $overwrite Set to true to overwrite an existing value
Set an option on the context and the internal options array