test_should_strip_auth_https_upgrade() — requests Function Reference
Architecture documentation for the test_should_strip_auth_https_upgrade() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 4f239ad3_2300_1064_9a29_7bd6297e7455["test_should_strip_auth_https_upgrade()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] 4f239ad3_2300_1064_9a29_7bd6297e7455 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style 4f239ad3_2300_1064_9a29_7bd6297e7455 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 1911–1928
def test_should_strip_auth_https_upgrade(self):
s = requests.Session()
assert not s.should_strip_auth(
"http://example.com/foo", "https://example.com/bar"
)
assert not s.should_strip_auth(
"http://example.com:80/foo", "https://example.com/bar"
)
assert not s.should_strip_auth(
"http://example.com/foo", "https://example.com:443/bar"
)
# Non-standard ports should trigger stripping
assert s.should_strip_auth(
"http://example.com:8080/foo", "https://example.com/bar"
)
assert s.should_strip_auth(
"http://example.com/foo", "https://example.com:8443/bar"
)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_should_strip_auth_https_upgrade() do?
test_should_strip_auth_https_upgrade() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_should_strip_auth_https_upgrade() defined?
test_should_strip_auth_https_upgrade() is defined in tests/test_requests.py at line 1911.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free