Post #2901536
2026-04-27 19:15 UTC
@alex@social.alexwlchan.net
Does this handle dechunking? I don't see it mentioned.
Transfer-Encoding: chunked
It gets used for streaming, which is mentioned, but I have seen it for large HTML pages, and server-side generated images. It is a real pain to deal with if you have have a chunked response with response headers detached
Replies (1)
-
@alex@social.alexwlchan.net 2026-04-27 20:44
@elithebearded@fed.qaz.red Maaaaybe? I see `Transfer-Encoding: chunked` mentioned in the docs for urllib.request, but I’m not sure if I’ve ever encountered a chunked response in my scripts.