Esempio n. 1
0
 def _on_response(self, event, *args, **kwargs):
     event[0] = gzip(event[0])
Esempio n. 2
0
 def _on_response(self, event, *args, **kwargs):
     event[0] = gzip(event[0])
Esempio n. 3
0
 def _on_response_started(self, event, response_event):
     response = response_event[0]
     gzip(response, mime_types=self.mime_types)
Esempio n. 4
0
 def compress_response(self, event, response):
     event[0] = gzip(response)
Esempio n. 5
0
 def _on_response_started(self, event, response_event):
     response = response_event[0]
     gzip(response, mime_types=self.mime_types)