Add support for Content-Encoding #2085
Replies: 5 comments 2 replies
-
Just looked around https://gist.github.com/nvie/2769669 https://pypi.python.org/pypi/wsgigzip/0.1 |
Beta Was this translation helpful? Give feedback.
-
Seems like this would be better left to the WSGI container or reverse proxy in front of your app... |
Beta Was this translation helpful? Give feedback.
-
@lichray Hey were you able to get this working on falcon itself ? |
Beta Was this translation helpful? Give feedback.
-
I haven't been using falcon for a long time. |
Beta Was this translation helpful? Give feedback.
-
@mevinbabuc In general, it is something that is normally handled on the WSGI application server level or by a reverse proxy (like Nginx), particularly when in comes to the (request) input stream. As to the response handling, I would also recommend handling this in a reverse proxy (very easy to enable compression in Nginx), although you can compress your responses if you really wish. You could take a look at @willnewton's https://github.com/willnewton/falcon-compression, or search PyPi for generic WSGI/ASGI compression middleware. |
Beta Was this translation helpful? Give feedback.
-
It'd be great to facilitate the use of
Content-Encoding
andAccepts-Encoding
request/response headers (accepts_encoding
,content_encoding
).I might tackle this soon, so interacting with compressed, streaming content through Falcon is easy.
More info: (wiki) HTTP Compression
Beta Was this translation helpful? Give feedback.
All reactions