def get_host(url):
 p = parse_url(url)
 return ((p.scheme or 'http'), p.hostname, p.port)

def get_host ( url ) : p = parse_url ( url ) return ( ( p . scheme or 'http' ) , p . hostname , p . port )
return the real host for the given wsgi environment .