MCPcopy
hub / github.com/pallets/werkzeug / address_string

Method address_string

src/werkzeug/serving.py:423–430  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

421 return getattr(super(), name)
422
423 def address_string(self) -> str:
424 if getattr(self, "environ", None):
425 return self.environ["REMOTE_ADDR"] # type: ignore
426
427 if not self.client_address:
428 return "<local>"
429
430 return self.client_address[0]
431
432 def port_integer(self) -> int:
433 return self.client_address[1]

Callers 2

make_environMethod · 0.95
logMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected