__init__() — requests Function Reference
Architecture documentation for the __init__() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 6d82469e_7369_48aa_08d7_ca0632449489["__init__()"] 10abb140_ad40_5285_21f7_5b6e4a140a93["RedirectSession"] 6d82469e_7369_48aa_08d7_ca0632449489 -->|defined in| 10abb140_ad40_5285_21f7_5b6e4a140a93 style 6d82469e_7369_48aa_08d7_ca0632449489 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 2555–2560
def __init__(self, order_of_redirects):
self.redirects = order_of_redirects
self.calls = []
self.max_redirects = 30
self.cookies = {}
self.trust_env = False
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does __init__() do?
__init__() is a function in the requests codebase, defined in tests/test_requests.py.
Where is __init__() defined?
__init__() is defined in tests/test_requests.py at line 2555.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free