glance.api.middleware.gzip module

Use gzip compression if the client accepts it.

class glance.api.middleware.gzip.GzipMiddleware(app)[source]

Bases: glance.common.wsgi.Middleware

process_response(response)[source]

Do whatever you’d like to the response.

re_zip = re.compile('\\bgzip\\b')