This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-15
Channels
- # aws-lambda (6)
- # beginners (8)
- # cider (12)
- # cljs-dev (12)
- # cljsrn (9)
- # clojars (2)
- # clojure (161)
- # clojure-berlin (9)
- # clojure-italy (10)
- # clojure-russia (18)
- # clojure-spec (20)
- # clojure-uk (18)
- # clojurescript (37)
- # cursive (13)
- # data-science (1)
- # datomic (23)
- # flambo (2)
- # hoplon (22)
- # immutant (11)
- # jobs (1)
- # klipse (11)
- # leiningen (5)
- # liberator (7)
- # luminus (5)
- # lumo (3)
- # off-topic (28)
- # om (8)
- # onyx (15)
- # parinfer (111)
- # pedestal (21)
- # re-frame (6)
- # reagent (38)
- # rum (4)
- # spacemacs (2)
- # specter (34)
- # unrepl (122)
- # untangled (3)
- # vim (1)
- # yada (8)
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?
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. 🙂
@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