def _build_url(self, endpoint):
server = None<EOL>if "<STR_LIT>" in endpoint:<EOL><INDENT>server, endpoint = self._deconstruct_url(endpoint)<EOL><DEDENT>endpoint = endpoint.lstrip("<STR_LIT:/>")<EOL>url = "<STR_LIT>".format(<EOL>proto=self.protocol,<EOL>server=self.client.server if server is None else server,<EOL>endpoint=endpoint,<EOL>)<EOL>return url<EOL>
Returns a fully qualified URL