Fork me on GitHub
#immutant
<
2017-06-15
>
jfntn20:06:10

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

jfntn20:06:25

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

jfntn20:06:42

Ha well you answered before I finished typing 🙂

jcrossley320:06:18

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

jfntn20:06:14

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

jcrossley320:06:47

in theory, yes. 🙂

jfntn20:06:24

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

jcrossley320:06:28

@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

jcrossley320:06:35

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