MCPcopy
hub / github.com/tornadoweb/tornado / get_url

Method get_url

tornado/testing.py:467–469  ·  view source on GitHub ↗

Returns an absolute url for the given path on the test server.

(self, path: str)

Source from the content-addressed store, hash-verified

465 return "http"
466
467 def get_url(self, path: str) -> str:
468 """Returns an absolute url for the given path on the test server."""
469 return f"{self.get_protocol()}://127.0.0.1:{self.get_http_port()}{path}"
470
471 def tearDown(self) -> None:
472 self.http_server.stop()

Callers 2

fetchMethod · 0.95
check_urlMethod · 0.45

Calls 2

get_protocolMethod · 0.95
get_http_portMethod · 0.95

Tested by

no test coverage detected