MCPcopy
hub / github.com/scrapy/scrapy / get_url

Method get_url

tests/test_http2_client_protocol.py:265–272  ·  view source on GitHub ↗

:param path: Should have / at the starting compulsorily if not empty :return: Complete url

(self, portno: int, path: str)

Source from the content-addressed store, hash-verified

263 client.transport.abortConnection()
264
265 def get_url(self, portno: int, path: str) -> str:
266 """
267 :param path: Should have / at the starting compulsorily if not empty
268 :return: Complete url
269 """
270 assert len(path) > 0
271 assert path[0] == "/" or path[0] == "&"
272 return f"{self.scheme}://{self.host}:{portno}{path}"
273
274 @staticmethod
275 async def _check_repeat(

Callers 15

clientMethod · 0.95
test_GET_small_bodyMethod · 0.95
test_GET_large_bodyMethod · 0.95
test_POST_small_jsonMethod · 0.95
test_POST_large_jsonMethod · 0.95
test_cancel_requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected