MCPcopy
hub / github.com/scrapy/scrapy / get_host

Method get_host

scrapy/http/cookies.py:150–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

148 return self.request.url
149
150 def get_host(self) -> str:
151 return urlparse_cached(self.request).netloc
152
153 def get_type(self) -> str:
154 return urlparse_cached(self.request).scheme

Callers 2

hostMethod · 0.95
test_get_hostMethod · 0.80

Calls 1

urlparse_cachedFunction · 0.90

Tested by 1

test_get_hostMethod · 0.64