Fork me on GitHub
#reitit
<
2017-12-15
>
ikitommi18:12:20

Building a reitit-http module with support for Interceptors. All the good stuff from Middleware will work there too, including the precompilation against routes. The request coercion interceptor is dead simple

ikitommi18:12:10

Mounting that will either return nil - if the route doesn’t require input coercion (no :parameters & :coercion defined) or a Interceptor with :name and :enter defined. For the latter, the compile returns a function, which is coerced into :enter context-handler.

ikitommi18:12:58

Feeling really good about the abstractions. Not many (~1) compromises.

yogthos23:12:52

@ikitommi let me know when you think things are stable enough with reitit-http, I'd like to take a stab at moving luminus over to it

yogthos23:12:37

and if you have a bit of time to help structure the template (specifically middleware) in the way you think would be idiomatic that would be fantastic as well 🙂