def _computeHostValue(self, scheme, host, port):
        """
        Compute the string to use for the value of the I{Host} header, based on
        the given scheme, host name, and port number.
        """
        if (scheme, port) in (('http', 80), ('https', 443)):
            return host
        return '%s:%d' % (host, port)
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/web/client.py/_AgentBase._computeHostValue/original