Phly\Http\RequestTrait::getHostFromUri PHP Method

getHostFromUri() private method

Retrieve the host from the URI instance
private getHostFromUri ( ) : string
return string
    private function getHostFromUri()
    {
        $host = $this->uri->getHost();
        $host .= $this->uri->getPort() ? ':' . $this->uri->getPort() : '';
        return $host;
    }