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

Function is_third_party

Lib/http/cookiejar.py:727–741  ·  view source on GitHub ↗

RFC 2965, section 3.3.6: An unverifiable transaction is to a third-party host if its request- host U does not domain-match the reach R of the request-host O in the origin transaction.

(request)

Source from the content-addressed store, hash-verified

725 return h
726
727def is_third_party(request):
728 """
729
730 RFC 2965, section 3.3.6:
731
732 An unverifiable transaction is to a third-party host if its request-
733 host U does not domain-match the reach R of the request-host O in the
734 origin transaction.
735
736 """
737 req_host = request_host(request)
738 if not domain_match(req_host, reach(request.origin_req_host)):
739 return True
740 else:
741 return False
742
743
744class Cookie:

Callers 2

set_ok_verifiabilityMethod · 0.85

Calls 3

domain_matchFunction · 0.85
reachFunction · 0.85
request_hostFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…