I’m looking for examples of gzip (de)compression with immutant but not finding anything
@jfntn in theory, it's possible using some java interop: https://github.com/undertow-io/undertow/blob/6590344867e77ca273a22e2c17d51890ddd5fc1b/core/src/test/java/io/undertow/server/handlers/encoding/GzipContentEncodingTestCase.java#L50
you can use http-handler
to get an Undertow HttpHandler
http://immutant.org/documentation/current/apidoc/immutant.web.undertow.html#var-http-handler
@jcrossley3 thanks I was looking at that, but didn’t see a call to setRootHandler
in the immutant codebase so I’m not sure where this interop should happen?
Ha well you answered before I finished typing 🙂
if you can work up a small example, publish it! 🙂
@jcrossley3 I should have mentionned we’re using pedestal, do you think this is still applicable?
in theory, yes. 🙂
Is :context-configurator
the correct entry point for this in pedestal?
@jfntn regarding your setRootHandler
query, recall that you can pass an HttpHandler
to immutant.web/run
, so I think you can create the pedestal (ring) handler, turn it into an HttpHandler, wrap it in the gzip handler and then pass it to web/run
@jfntn i don't know about pedestal, but those guys should be able to help you get to its ring handler