-
Love this library, thanks! Been using uWebSockets for webScokets but now I'm also trying to implement GET and POST. Obviously it's pretty easy except the compression part. I need to compress several semi large responses from a GET (500k) and compression: uWS.SHARED_COMPRESSOR, or any of the other compression enumerations do nothing to the GET response. Does compression for an HTTP response require manual implementation? Can I somehow use a gZip lib without resorting to use express or fastify? I can't find anything in the documentation on this. Any help is appreciated. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use zlib, this is the way i used it:
and in your code you should check if the client accept encoding
|
Beta Was this translation helpful? Give feedback.
You can use zlib, this is the way i used it:
and in your code you should check if the client accept encoding