send() — requests Function Reference
Architecture documentation for the send() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 772251a3_91b5_d6a8_857f_bb938ed045f7["send()"] 10abb140_ad40_5285_21f7_5b6e4a140a93["RedirectSession"] 772251a3_91b5_d6a8_857f_bb938ed045f7 -->|defined in| 10abb140_ad40_5285_21f7_5b6e4a140a93 a76dc2d3_fc5d_4a21_e0c9_9d19e47d7851["test_mixed_case_scheme_acceptable()"] a76dc2d3_fc5d_4a21_e0c9_9d19e47d7851 -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 17fe672f_89d8_d6d8_76e5_e8a12704833e["test_HTTP_200_OK_GET_ALTERNATIVE()"] 17fe672f_89d8_d6d8_76e5_e8a12704833e -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 9a236e9a_b045_255f_928c_3258771b2bce["test_header_and_body_removal_on_redirect()"] 9a236e9a_b045_255f_928c_3258771b2bce -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 5682b645_2f8b_0c11_82e2_fec12866dbcd["test_cookielib_cookiejar_on_redirect()"] 5682b645_2f8b_0c11_82e2_fec12866dbcd -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 de9e3441_945f_9812_8637_3e91f492c58c["test_respect_proxy_env_on_send_self_prepared_request()"] de9e3441_945f_9812_8637_3e91f492c58c -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 688f4887_ca75_3365_89c5_6d493ddcbf82["test_respect_proxy_env_on_send_session_prepared_request()"] 688f4887_ca75_3365_89c5_6d493ddcbf82 -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 83edfc8a_cc01_2b13_9b82_60051156632c["test_respect_proxy_env_on_send_with_redirects()"] 83edfc8a_cc01_2b13_9b82_60051156632c -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 ec1215a2_7b82_11d0_1677_1e1d2a525b5d["test_unicode_method_name_with_request_object()"] ec1215a2_7b82_11d0_1677_1e1d2a525b5d -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 0ef1b1b4_2f74_4260_0dd2_9f42a1854d71["test_non_prepared_request_error()"] 0ef1b1b4_2f74_4260_0dd2_9f42a1854d71 -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 62aa4797_6155_0218_7a8f_55217a15a716["test_hook_receives_request_arguments()"] 62aa4797_6155_0218_7a8f_55217a15a716 -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 2feb9a84_71a1_ca0a_c285_b622c8a9acc3["test_prepared_request_hook()"] 2feb9a84_71a1_ca0a_c285_b622c8a9acc3 -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 31f5dcfd_9e57_712a_a37d_e7ce6847cf9b["test_prepared_from_session()"] 31f5dcfd_9e57_712a_a37d_e7ce6847cf9b -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 54f0a585_30e1_8b67_7bc2_faccbaa757dc["test_prepared_request_is_pickleable()"] 54f0a585_30e1_8b67_7bc2_faccbaa757dc -->|calls| 772251a3_91b5_d6a8_857f_bb938ed045f7 style 772251a3_91b5_d6a8_857f_bb938ed045f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 2562–2564
def send(self, *args, **kwargs):
self.calls.append(SendCall(args, kwargs))
return self.build_response()
Domain
Subdomains
Defined In
Calls
Called By
- test_HTTP_200_OK_GET_ALTERNATIVE()
- test_cannot_send_unprepared_requests()
- test_cookielib_cookiejar_on_redirect()
- 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_header_and_body_removal_on_redirect()
- test_hook_receives_request_arguments()
- test_mixed_case_scheme_acceptable()
- test_non_prepared_request_error()
- test_prepared_from_session()
- test_prepared_request_hook()
- test_prepared_request_is_pickleable()
- test_prepared_request_with_file_is_pickleable()
- test_prepared_request_with_hook_is_pickleable()
- test_requests_are_updated_each_time()
- test_respect_proxy_env_on_send_self_prepared_request()
- test_respect_proxy_env_on_send_session_prepared_request()
- test_respect_proxy_env_on_send_with_redirects()
- test_session_pickling()
- test_unicode_method_name_with_request_object()
Source
Frequently Asked Questions
What does send() do?
send() is a function in the requests codebase, defined in tests/test_requests.py.
Where is send() defined?
send() is defined in tests/test_requests.py at line 2562.
What does send() call?
send() calls 1 function(s): build_response.
What calls send()?
send() is called by 22 function(s): test_HTTP_200_OK_GET_ALTERNATIVE, test_cannot_send_unprepared_requests, test_cookielib_cookiejar_on_redirect, 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_header_and_body_removal_on_redirect, and 14 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free