Package omeroweb :: Package webgateway :: Module middleware :: Class GZipMiddleware
[hide private]
[frames] | no frames]

Class GZipMiddleware

source code


This middleware compresses content if the browser allows gzip compression. It sets the Vary header accordingly, so that caches will base their storage on the Accept-Encoding header.

Instance Methods [hide private]
 
process_response(self, request, response) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__