def resolve_host(host, port=None):
    """
    Resolve host from given arguments
    :param host: string
    :param port: number
    :return:
    """
    if port and port != 80:
        host += ':' + str(port)
    if not host.startswith('http'):
        host = 'http://' + host
    return host
