Elastica\Transport\AwsAuthV4::initializePortAndScheme PHP Method

initializePortAndScheme() private method

    private function initializePortAndScheme()
    {
        $connection = $this->getConnection();
        if (true === $this->getConfig($connection, 'ssl')) {
            $this->_scheme = 'https';
            $connection->setPort(443);
        } else {
            $this->_scheme = 'http';
            $connection->setPort(80);
        }
    }