Fork me on GitHub
#reitit
<
2019-01-06
>
WhoNeedszZz19:01:49

Hey, folks. What is(are) the practical difference(s) between using ring vs http with reitit?

ikitommi19:01:23

@whoneedszzz http has easier async, but basically non-exiting 3rd party interceptor libs. with ring, there are ton’s of existing middleware libs, but async middleware is not that fun to write.

ikitommi19:01:11

Creating interceptors from existing middleware is kinda trivial thou, here’s an example: https://github.com/metosin/reitit/blob/master/modules/reitit-interceptors/src/reitit/http/interceptors/parameters.clj.

ikitommi20:01:16

Pedestal has a good set of existing interceptors and one can use reitit-http with it. Goal is to eventually have most of the useful interceptors pre-packaged & integrated with the reitit/sieppari semantics with good docs, so that it would be newbie friendly. Now, just the most useful part pushed out (coercion, exceptions, formatting etc.).

WhoNeedszZz20:01:16

All of this overlap is what's getting me. For what I'm working on currently it really doesn't matter what I use as it's so basic, but I'd like to use something that I would want to use for a larger project and learn it now.