test_chunked_upload() — requests Function Reference
Architecture documentation for the test_chunked_upload() function in test_lowlevel.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 9764c606_af26_9960_2f8b_e925cfc5400b["test_chunked_upload()"] 48561d17_8bd1_bf20_5710_ec3053a534d2["test_lowlevel.py"] 9764c606_af26_9960_2f8b_e925cfc5400b -->|defined in| 48561d17_8bd1_bf20_5710_ec3053a534d2 77b5091f_26f5_443a_fd8b_425cdd5ca984["basic_response_server()"] 9764c606_af26_9960_2f8b_e925cfc5400b -->|calls| 77b5091f_26f5_443a_fd8b_425cdd5ca984 style 9764c606_af26_9960_2f8b_e925cfc5400b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_lowlevel.py lines 24–36
def test_chunked_upload():
"""can safely send generators"""
close_server = threading.Event()
server = Server.basic_response_server(wait_to_close_event=close_server)
data = iter([b"a", b"b", b"c"])
with server as (host, port):
url = f"http://{host}:{port}/"
r = requests.post(url, data=data, stream=True)
close_server.set() # release server block
assert r.status_code == 200
assert r.request.headers["Transfer-Encoding"] == "chunked"
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_chunked_upload() do?
test_chunked_upload() is a function in the requests codebase, defined in tests/test_lowlevel.py.
Where is test_chunked_upload() defined?
test_chunked_upload() is defined in tests/test_lowlevel.py at line 24.
What does test_chunked_upload() call?
test_chunked_upload() calls 1 function(s): basic_response_server.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free