def get_url(path, host, port, method="<STR_LIT:http>"):
return urlunsplit(<EOL>(method, "<STR_LIT>" % (host, port), path, "<STR_LIT>", "<STR_LIT>")<EOL>)<EOL>
make url from path, host and port

:param method: str
:param path: str, path within the request, e.g. "/api/version"
:param host: str
:param port: str or int
:return: str