This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-18
Channels
- # announcements (2)
- # asami (20)
- # aws (4)
- # babashka (35)
- # beginners (47)
- # calva (65)
- # cider (19)
- # clj-kondo (63)
- # clojure (177)
- # clojure-austin (2)
- # clojure-europe (27)
- # clojure-nl (1)
- # clojure-uk (4)
- # clojurescript (13)
- # community-development (5)
- # conjure (5)
- # css (2)
- # data-oriented-programming (9)
- # datalevin (13)
- # datascript (15)
- # datomic (4)
- # devcards (6)
- # duct (4)
- # emacs (8)
- # funcool (1)
- # gratitude (2)
- # helix (3)
- # hyperfiddle (3)
- # introduce-yourself (1)
- # jobs (4)
- # jobs-discuss (26)
- # lambdaisland (2)
- # lsp (20)
- # malli (2)
- # meander (2)
- # mid-cities-meetup (5)
- # missionary (15)
- # music (4)
- # off-topic (37)
- # reagent (3)
- # reitit (2)
- # releases (2)
- # ring (18)
- # shadow-cljs (70)
- # specter (4)
- # sql (20)
- # timbre (3)
- # tools-build (43)
- # tools-deps (11)
- # vim (29)
- # xtdb (61)
I'm trying to figure out how to mount a Java servlet (https://download.eclipse.org/jgit/site/6.1.0.202203080745-r/apidocs/org/eclipse/jgit/http/server/GitServlet.html) at a specific path (using Reitit) in a Ring handler. Is this possible? If so, any pointers as to how?
The server is Jetty (embedded)
similar question asked in beginners earlier - but basically you need to do it at the server level
ah okay
that's the way I have it set up now
it's a bit annoying because I can't use my middleware with it
(i.e. I have to replicate it for the servlet)
there's this, which can translate servlet requests to a Ring requests, and a Ring responses to servlet responses: https://github.com/ring-clojure/ring/blob/master/ring-servlet/src/ring/util/servlet.clj
...but I'd want to translate in the other direction, so to speak
I have a bunch of middleware, but the most relevant here would be my custom middleware for auth and logging
...and yeah, something like that works, but I was hoping I'd be able to just find a way to stick some Ring middleware inbetween instead of extra servlets.