Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
host
Method · 0.95
test_get_host
Method · 0.80
Calls
1
urlparse_cached
Function · 0.90
Tested by
1
test_get_host
Method · 0.64