@staticmethod<EOL><INDENT>def get_self_host(request_data):<DEDENT>
if '<STR_LIT>' in request_data:<EOL><INDENT>current_host = request_data['<STR_LIT>']<EOL><DEDENT>elif '<STR_LIT>' in request_data:<EOL><INDENT>current_host = request_data['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT::>' in current_host:<EOL><INDENT>current_host_data = current_host.split('<STR_LIT::>')<EOL>possible_port = current_host_data[-<NUM_LIT:1>]<EOL>try:<EOL><INDENT>possible_port = float(possible_port)<EOL>current_host = current_host_data[<NUM_LIT:0>]<EOL><DEDENT>except ValueError:<EOL><INDENT>current_host = '<STR_LIT::>'.join(current_host_data)<EOL><DEDENT><DEDENT>return current_host<EOL>
Returns the current host.

:param request_data: The request as a dict
:type: dict

:return: The current host
:rtype: string