MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / eff_request_host

Function eff_request_host

tools/python-3.11.9-amd64/Lib/http/cookiejar.py:636–645  ·  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

634 return host.lower()
635
636def eff_request_host(request):
637 """Return a tuple (request-host, effective request-host name).
638
639 As defined by RFC 2965, except both are lowercased.
640
641 """
642 erhn = req_host = request_host(request)
643 if req_host.find(".") == -1 and not IPV4_RE.search(req_host):
644 erhn = req_host + ".local"
645 return req_host, erhn
646
647def request_path(request):
648 """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 3

request_hostFunction · 0.70
findMethod · 0.45
searchMethod · 0.45

Tested by

no test coverage detected