Amp\Artax\Client::generateCryptoOptions PHP Method

generateCryptoOptions() private method

private generateCryptoOptions ( RequestCycle $cycle )
$cycle RequestCycle
    private function generateCryptoOptions(RequestCycle $cycle)
    {
        $options = ['peer_name' => $cycle->uri->getHost()];
        // Allow client-wide TLS settings
        if ($this->options[self::OP_CRYPTO]) {
            $options = array_merge($options, $this->options[self::OP_CRYPTO]);
        }
        // Allow per-request TLS settings
        if ($cycle->options[self::OP_CRYPTO]) {
            $options = array_merge($options, $cycle->options[self::OP_CRYPTO]);
        }
        return $options;
    }