stream_decode_response_unicode() — requests Function Reference
Architecture documentation for the stream_decode_response_unicode() function in utils.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 7791240e_4e36_1e16_7d34_5ca6bb94eae7["stream_decode_response_unicode()"] 2c39b9da_e317_5e6c_bbac_8362bac2110c["utils.py"] 7791240e_4e36_1e16_7d34_5ca6bb94eae7 -->|defined in| 2c39b9da_e317_5e6c_bbac_8362bac2110c 1d84ce86_28dc_c5f4_e8af_24874e68169e["iter_content()"] 1d84ce86_28dc_c5f4_e8af_24874e68169e -->|calls| 7791240e_4e36_1e16_7d34_5ca6bb94eae7 style 7791240e_4e36_1e16_7d34_5ca6bb94eae7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/requests/utils.py lines 552–566
def stream_decode_response_unicode(iterator, r):
"""Stream decodes an iterator."""
if r.encoding is None:
yield from iterator
return
decoder = codecs.getincrementaldecoder(r.encoding)(errors="replace")
for chunk in iterator:
rv = decoder.decode(chunk)
if rv:
yield rv
rv = decoder.decode(b"", final=True)
if rv:
yield rv
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does stream_decode_response_unicode() do?
stream_decode_response_unicode() is a function in the requests codebase, defined in src/requests/utils.py.
Where is stream_decode_response_unicode() defined?
stream_decode_response_unicode() is defined in src/requests/utils.py at line 552.
What calls stream_decode_response_unicode()?
stream_decode_response_unicode() is called by 1 function(s): iter_content.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free