SessionLifecycle — requests Architecture
Management of connection persistence and shared settings across calls
Entity Profile
Dependency Diagram
graph TD subdomain_CoreAPI_SessionLifecycle["SessionLifecycle"] 49a0c53c_80e1_9458_74b1_35d844ac4420["status_codes.py"] subdomain_CoreAPI_SessionLifecycle --> 49a0c53c_80e1_9458_74b1_35d844ac4420 791d5c50_4035_fe2d_0dfe_c95ab4253607["__init__.py"] subdomain_CoreAPI_SessionLifecycle --> 791d5c50_4035_fe2d_0dfe_c95ab4253607 69ebfd6f_8f0c_4586_0c19_2c348e1a42a2["test_requests.py"] subdomain_CoreAPI_SessionLifecycle --> 69ebfd6f_8f0c_4586_0c19_2c348e1a42a2 e5a6a063_2dfc_096a_27c7_bb536a14c8e5["compat.py"] subdomain_CoreAPI_SessionLifecycle --> e5a6a063_2dfc_096a_27c7_bb536a14c8e5 f4a2f4ac_0336_89fc_eb3c_2c88c34f05a8["exceptions.py"] subdomain_CoreAPI_SessionLifecycle --> f4a2f4ac_0336_89fc_eb3c_2c88c34f05a8 48561d17_8bd1_bf20_5710_ec3053a534d2["test_lowlevel.py"] subdomain_CoreAPI_SessionLifecycle --> 48561d17_8bd1_bf20_5710_ec3053a534d2 461bc6e0_32e7_8eab_ec87_7226e7be0d13["models.py"] subdomain_CoreAPI_SessionLifecycle --> 461bc6e0_32e7_8eab_ec87_7226e7be0d13 b9426d6e_b47d_565b_5251_7d3a1c1dfbd1["api.py"] subdomain_CoreAPI_SessionLifecycle --> b9426d6e_b47d_565b_5251_7d3a1c1dfbd1 733a3397_4d8b_4610_9dd6_21f99211b86c["test_structures.py"] subdomain_CoreAPI_SessionLifecycle --> 733a3397_4d8b_4610_9dd6_21f99211b86c 06c77466_ae83_6ca8_4f12_f6a21fba9313["hooks.py"] subdomain_CoreAPI_SessionLifecycle --> 06c77466_ae83_6ca8_4f12_f6a21fba9313 6cf98a23_4f9c_9f92_66f0_e3af57898d30["test_testserver.py"] subdomain_CoreAPI_SessionLifecycle --> 6cf98a23_4f9c_9f92_66f0_e3af57898d30 6430646e_5e0b_b007_dfae_64d5169574d4["test_adapters.py"] subdomain_CoreAPI_SessionLifecycle --> 6430646e_5e0b_b007_dfae_64d5169574d4 d7a739b0_e73b_9565_f5ed_5e8c24943504["auth.py"] subdomain_CoreAPI_SessionLifecycle --> d7a739b0_e73b_9565_f5ed_5e8c24943504 c2d415dd_8425_6fd7_04d3_53fb1ca4ea4d["packages.py"] subdomain_CoreAPI_SessionLifecycle --> c2d415dd_8425_6fd7_04d3_53fb1ca4ea4d style subdomain_CoreAPI_SessionLifecycle fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Domain
Functions
- Close()
- SOCKSProxyManager()
- StringIO()
- __call__()
- __call__()
- __delitem__()
- __delitem__()
- __delitem__()
- __enter__()
- __enter__()
- __eq__()
- __exit__()
- __getitem__()
- __getstate__()
- __getstate__()
- __getstate__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __len__()
- __len__()
- __len__()
- __ne__()
- __ne__()
- __nonzero__()
- __reduce__()
- __repr__()
- __repr__()
- __repr__()
- __repr__()
- __repr__()
- __setitem__()
- __setitem__()
- __setstate__()
- _accept_connection()
- _basic_auth_str()
- _build_raw()
- _close_server_sock_ignore_errors()
- _create_socket_and_bind()
- _create_socket_and_bind()
- _encode_files()
- _find_no_duplicates()
- _implementation()
- _init()
- _parse_content_type_header()
- _patch_adapter_gzipped_redirect()
- _resolve_char_detection()
- add_dict_to_cookiejar()
- add_unredirected_header()
- apparent_encoding()
- basic_response_server()
- build_connection_pool_key_attributes()
- build_response()
- chardet()
- charset_normalizer()
- check_header_validity()
- close()
- close()
- cookiejar_from_dict()
- create_cookie()
- default_hooks()
- default_user_agent()
- deregister_hook()
- dict_to_sequence()
- dotted_netmask()
- dummy_threading()
- echo_response_handler()
- extract_cookies_to_jar()
- extract_zipped_paths()
- from_key_val_list()
- get()
- get_connection()
- get_connection_with_tls_context()
- get_dict()
- get_header()
- get_netrc_auth()
- get_origin_req_host()
- get_policy()
- get_redirect_target()
- get_redirect_target()
- get_type()
- get_unicode_from_response()
- handle_redirect()
- host()
- httpbin_secure()
- info()
- init_per_thread_state()
- init_poolmanager()
- is_permanent_redirect()
- is_unverifiable()
- is_valid_cidr()
- items()
- iter_lines()
- json()
- keys()
- links()
- list_paths()
- locals()
- merge_environment_settings()
- merge_setting()
- ok()
- options()
- options()
- parse_header_links()
- parse_list_header()
- patch()
- patch()
- path_url()
- post()
- post()
- prepare_auth()
- prepare_body()
- prepare_hooks()
- prepare_method()
- prepare_url()
- prepare_url()
- prepend_scheme_if_needed()
- proxy_headers()
- pyopenssl()
- read()
- rebuild_proxies()
- remove_cookie_by_name()
- request()
- request()
- request_url()
- requests()
- requote_uri()
- resolve_redirects()
- scheme()
- seek()
- select_proxy()
- send()
- send()
- session()
- set()
- setup()
- setup()
- should_bypass_proxies()
- ssl()
- stream_decode_response_unicode()
- tell()
- tell()
- test_DIGESTAUTH_QUOTES_QOP_VALUE()
- test_DIGEST_AUTH_RETURNS_COOKIE()
- test_DIGEST_STREAM()
- test_HTTP_200_OK_GET_ALTERNATIVE()
- test_HTTP_200_OK_GET_WITH_PARAMS()
- test_HTTP_200_OK_PUT()
- test_HTTP_302_TOO_MANY_REDIRECTS()
- test_HTTP_307_ALLOW_REDIRECT_POST()
- test_POSTBIN_GET_POST_FILES_WITH_DATA()
- test_add_dict_to_cookiejar()
- test_basic()
- test_basic_auth_str_is_always_native()
- test_basic_building()
- test_basic_waiting_server()
- test_basicauth_with_netrc_leak()
- test_bypass()
- test_bypass_no_proxy_keyword()
- test_can_access_idna_attribute()
- test_can_send_file_object_with_non_string_filename()
- test_cannot_send_unprepared_requests()
- test_chunked_upload()
- test_chunked_upload_does_not_set_content_length_header()
- test_chunked_upload_uses_only_specified_host_header()
- test_conflicting_content_lengths()
- test_conflicting_post_params()
- test_cookie_as_dict_keeps_items()
- test_cookie_as_dict_values()
- test_cookie_duplicate_names_different_domains()
- test_cookie_parameters()
- test_cookie_persists_via_api()
- test_cookie_policy_copy()
- test_cookie_removed_on_expire()
- test_cookielib_cookiejar_on_redirect()
- test_copy()
- test_custom_content_type()
- test_data_argument_accepts_tuples()
- test_delitem()
- test_different_connection_pool_for_mtls_settings()
- test_different_connection_pool_for_tls_settings_verify_True()
- test_different_connection_pool_for_tls_settings_verify_bundle_expired_cert()
- test_different_connection_pool_for_tls_settings_verify_bundle_unexpired_cert()
- test_different_encodings_dont_break_post()
- test_digestauth_401_only_sent_once()
- test_docstring_example()
- test_dotted_netmask()
- test_empty_response_has_content_none()
- test_empty_stream_with_auth_does_not_set_content_length_header()
- test_encoded()
- test_entry_points()
- test_equality()
- test_errors()
- test_expires_none()
- test_expires_valid_str()
- test_fragment_update_on_redirect()
- test_generic_cookiejar_works()
- test_get()
- test_get_encoding_from_headers()
- test_getitem()
- test_getitem()
- test_getitem()
- test_guess_by_bom()
- test_guess_filename_invalid()
- test_header_and_body_removal_on_redirect()
- test_header_no_return_chars()
- test_header_remove_is_case_insensitive()
- test_header_validation()
- test_header_with_subclass_types()
- test_headers_on_session_with_None_are_not_sent()
- test_history_is_always_a_list()
- test_hooks()
- test_https_warnings()
- test_idna_with_version_attribute()
- test_invalid()
- test_invalid_files_input()
- test_invalid_ssl_certificate_files()
- test_invalid_timeout()
- test_invalid_unc_path()
- test_is_filename()
- test_iter_content_wraps_exceptions()
- test_json_decode_compatibility()
- test_json_param_post_content_type_works()
- test_long_authinfo_in_url()
- test_lower_items()
- test_lower_items()
- test_max_age_invalid_str()
- test_no_body_content_length()
- test_nonhttp_schemes_dont_check_URLs()
- test_not_vulnerable_to_bad_url_parsing()
- test_override_content_length()
- test_params_are_added_before_fragment()
- test_params_bytes_are_encoded()
- test_parse_dict_header()
- test_parse_header_links()
- test_pragmas()
- test_prepare_body_position_non_stream()
- test_prepared_from_session()
- test_prepared_request_hook()
- test_prepared_request_with_file_is_pickleable()
- test_preparing_bad_url()
- test_preserve_last_key_case()
- test_proxy_auth()
- test_proxy_authorization_not_appended_to_https_request()
- test_proxy_error_on_bad_url()
- test_pyopenssl_redirect()
- test_read_timeout()
- test_redirect_rfc1808_to_non_ascii_location()
- test_request_and_response_are_pickleable()
- test_request_cookie_overrides_session_cookie()
- test_request_recovery()
- test_request_recovery_with_bigger_timeout()
- test_request_url_trims_leading_path_separators()
- test_request_with_bytestring_host()
- test_requests_are_updated_each_time()
- test_requote_uri_with_unquoted_percents()
- test_respect_proxy_env_on_request()
- test_respect_proxy_env_on_send_session_prepared_request()
- test_respect_proxy_env_on_send_with_redirects()
- test_response_context_manager()
- test_response_decode_unicode()
- test_response_iter_lines()
- test_response_json_when_content_is_None()
- test_response_reason_unicode_fallback()
- test_rewind_body_failed_seek()
- test_rewind_partially_read_body()
- test_server_finishes_when_no_connections()
- test_session_close_proxy_clear()
- test_session_get_adapter_prefix_matching()
- test_session_get_adapter_prefix_matching_is_case_insensitive()
- test_session_get_adapter_prefix_matching_mixed_case()
- test_session_get_adapter_prefix_with_trailing_slash()
- test_session_get_adapter_prefix_without_trailing_slash()
- test_session_hooks_are_overridden_by_request_hooks()
- test_session_hooks_are_used_with_no_request_hooks()
- test_session_pickling()
- test_set_basicauth()
- test_set_cookie_on_301()
- test_set_environ_raises_exception()
- test_should_bypass_proxies()
- test_should_bypass_proxies_no_proxy()
- test_should_strip_auth_default_port()
- test_should_strip_auth_https_upgrade()
- test_status_code_425()
- test_status_raising()
- test_string()
- test_super_len_correctly_calculates_len_of_partially_read_file()
- test_super_len_handles_files_raising_weird_errors_in_tell()
- test_super_len_with_fileno()
- test_super_len_with_no__len__()
- test_tarfile_member()
- test_text_response()
- test_to_native_string()
- test_total_timeout_connect()
- test_transfer_enc_removal_on_redirect()
- test_unconsumed_session_response_closes_connection()
- test_unicode_get()
- test_unicode_method_name_with_request_object()
- test_unicode_multipart_post_fieldnames()
- test_unzipped_paths_unchanged()
- test_update_retains_unchanged()
- test_uppercase_scheme_redirect()
- test_url_mutation()
- test_urlencoded_get_query_multivalued_param()
- test_urllib3_pool_connection_closed()
- test_urllib3_retries()
- test_user_agent_transfers()
- test_valid()
- test_valid()
- test_valid()
- test_whitespaces_are_removed_from_url()
- text()
- u()
- unquote_header_value()
- unverifiable()
- update()
- urldefragauth()
- urllib3()
- values()
Source Files
- tests/__init__.py
- src/requests/api.py
- src/requests/auth.py
- tests/compat.py
- src/requests/exceptions.py
- src/requests/help.py
- src/requests/hooks.py
- src/requests/models.py
- src/requests/packages.py
- src/requests/status_codes.py
- tests/test_adapters.py
- tests/test_lowlevel.py
- tests/test_requests.py
- tests/test_structures.py
- tests/test_testserver.py
Source
- tests/__init__.py
- src/requests/api.py
- src/requests/auth.py
- tests/compat.py
- src/requests/exceptions.py
- src/requests/help.py
- src/requests/hooks.py
- src/requests/models.py
- src/requests/packages.py
- src/requests/status_codes.py
- tests/test_adapters.py
- tests/test_lowlevel.py
- tests/test_requests.py
- tests/test_structures.py
- tests/test_testserver.py
Frequently Asked Questions
What is the SessionLifecycle subdomain?
SessionLifecycle is a subdomain in the requests codebase, part of the CoreAPI domain. Management of connection persistence and shared settings across calls It contains 15 source files.
Which domain does SessionLifecycle belong to?
SessionLifecycle belongs to the CoreAPI domain.
What functions are in SessionLifecycle?
The SessionLifecycle subdomain contains 326 function(s): Close, SOCKSProxyManager, StringIO, __call__, __call__, __delitem__, __delitem__, __delitem__, and 318 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free