#36293: Extend `django.utils.text.compress_sequence()` to optionally flush data
written to compressed file
-------------------------------+--------------------------------------
Reporter: huoyinghui | Owner: (none)
Type: New feature | Status: closed
Component: HTTP handling | Version: dev
Severity: Normal | Resolution: needsinfo
Keywords: gzip flush | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by Carlton Gibson):
I'd like to see more exploration of solutions in project-space before we
add API here in Django. In particular, from the PR, the magic `"text
/event-stream"` restriction here is... well... a little ad hoc.
Better would be to subclass the GZIP middleware, and just skip compression
for for SSE responses (presuming events of less than 17kb). Such would be
a small number of lines, and quite a simple approach.
--
Ticket URL: <https://code.djangoproject.com/ticket/36293#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070196000cd537-ff0a15d3-a2f7-46ca-8070-f3e60411dc32-000000%40eu-central-1.amazonses.com.