MCPcopy
hub / github.com/scrapy/scrapy / origin_req_host

Method origin_req_host

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

Source from the content-addressed store, hash-verified

181
182 @property
183 def origin_req_host(self) -> str:
184 return cast("str", urlparse_cached(self.request).hostname)
185
186 def has_header(self, name: str) -> bool:
187 return name in self.request.headers

Callers

nothing calls this directly

Calls 1

urlparse_cachedFunction · 0.90

Tested by

no test coverage detected