- GzipMiddleware (compress_string(x) == compress_sequence([x])) - StripWhitespaceMiddleware - ContentDoctorMiddleware (https://github.com/unomena/django-content-doctor) - A hypothetical middleware that appends debug information to the end of the response. debug-toolbar may be able to work like this.
On Wed, Nov 28, 2012 at 11:07 AM, Aymeric Augustin <aymeric.augus...@polytechnique.org> wrote: > 2012/11/28 Gavin Wahl <gavinw...@gmail.com> >> >> I would like to avoid having two code paths, one with streaming and one >> without, in new middleware. > > > Hi Gavin, > > Could you give an example of a middleware that: > - needs to alter the content, > - will work identically both on regular HttpResponses and > StreamingHttpResponses, > - will not consume a streamed content (that's part of the contract of > StreamingHttpResponse)? > > Thanks, > > -- > Aymeric. > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To post to this group, send email to django-developers@googlegroups.com. > To unsubscribe from this group, send email to > django-developers+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.