MCPcopy Index your code
hub / github.com/python/cpython / eff_request_host

Function eff_request_host

Lib/http/cookiejar.py:637–646  ·  view source on GitHub ↗

Return a tuple (request-host, effective request-host name). As defined by RFC 2965, except both are lowercased.

(request)

Source from the content-addressed store, hash-verified

635 return host.lower()
636
637def eff_request_host(request):
638 """Return a tuple (request-host, effective request-host name).
639
640 As defined by RFC 2965, except both are lowercased.
641
642 """
643 erhn = req_host = request_host(request)
644 if "." not in req_host:
645 erhn = req_host + ".local"
646 return req_host, erhn
647
648def request_path(request):
649 """Path component of request-URI, as defined by RFC 2965."""

Callers 4

set_ok_domainMethod · 0.85
return_ok_domainMethod · 0.85
domain_return_okMethod · 0.85

Calls 1

request_hostFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…