glance.api.middleware.gzip module

Use gzip compression if the client accepts it.

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

Bases: Middleware

process_response(response)[source]

Do whatever you’d like to the response.

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