Hi, Why in this minimal case when the :status is 500 wrap-request throws an Exception java.lang.String cannot be cast to manifold.stream.core.IEventSource. Otherwise if I change the status to 200 the unhandled exception does not occur anymore.
@dimovich looks good to me. If the mw also can return deferred, you need to convert 'em too.
In general, the interceptor pattern fits much better with async: the interceptor executor takes care of passing the unwrapped maps to step functions. Just need a de facto specification to interceptors, to get an ecosystem of interceptor libs, like there is for ring. #interceptors btw.
@geraldodev btw, is it ok to wrap your server handler in a client middleware?
I'm assuming that it is. The checking that I did was , http/post's middleware defaults do identity (so no middleware at the client by default). I assumed that it was like ring (plug middleware at server). But I didnt relate the word client with with that fact that It had to be used at client.