MCPcopy Index your code
hub / github.com/rawpython/remi / _net_interface_ip

Method _net_interface_ip

remi/server.py:446–447  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

444 self.page.children['head'].set_internal_js(str(id(self)), net_interface_ip, pending_messages_queue_length, websocket_timeout_timer_ms)
445
446 def _net_interface_ip(self):
447 return self.headers.get('Host', "%s:%s"%(self.connection.getsockname()[0],self.server.server_address[1]))
448 def main(self, *_):
449 """ Subclasses of App class *must* declare a main function
450 that will be the entry point of the application.

Callers 1

_instanceMethod · 0.95

Calls 1

getsocknameMethod · 0.80

Tested by

no test coverage detected