Amp\Artax\HttpSocketPool::setOption PHP Method

setOption() public method

Set a socket pool option
public setOption ( integer | string $option, mixed $value ) : self
$option integer | string
$value mixed
return self
    public function setOption($option, $value)
    {
        switch ($option) {
            case self::OP_PROXY_HTTP:
                $this->options[self::OP_PROXY_HTTP] = (string) $value;
                break;
            case self::OP_PROXY_HTTPS:
                $this->options[self::OP_PROXY_HTTPS] = (string) $value;
                break;
            default:
                return $this->sockPool->setOption($option, $value);
        }
        return $this;
    }