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

Function is_third_party

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

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