immutant

http://immutant.org Note: dev discussion happens in #immutant on FreeNode IRC.
jfntn 2017-06-15T20:21:10.040991Z

I’m looking for examples of gzip (de)compression with immutant but not finding anything

2017-06-15T20:32:01.256346Z

you can use http-handler to get an Undertow HttpHandler http://immutant.org/documentation/current/apidoc/immutant.web.undertow.html#var-http-handler

jfntn 2017-06-15T20:32:25.265028Z

@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?

jfntn 2017-06-15T20:32:42.270891Z

Ha well you answered before I finished typing 🙂

2017-06-15T20:33:18.282228Z

if you can work up a small example, publish it! 🙂

jfntn 2017-06-15T20:35:14.320886Z

@jcrossley3 I should have mentionned we’re using pedestal, do you think this is still applicable?

2017-06-15T20:35:47.331750Z

in theory, yes. 🙂

jfntn 2017-06-15T20:41:24.440537Z

Is :context-configurator the correct entry point for this in pedestal?

2017-06-15T20:41:28.441576Z

@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

2017-06-15T20:42:35.463521Z

@jfntn i don't know about pedestal, but those guys should be able to help you get to its ring handler