sieppari icon indicating copy to clipboard operation
sieppari copied to clipboard

Pedestal style terminate-when

Open martinklepsch opened this issue 5 years ago • 1 comments

See Early Termination in the Pedestal docs + part of the source

I think this kind of hook is something that's missing from Sieppari right now.

martinklepsch avatar Apr 01 '20 14:04 martinklepsch

I just saw that there is sieppari.context/terminate, while that's a part of this it still means that Sieppari can't accept any "terminate when ..." style instructions. E.g. we might want to not execute any more interceptors once the :response key is set.

https://github.com/metosin/sieppari/blob/8cf22f73b34699d947858be2ba12455ab0b823ff/src/sieppari/context.cljc#L4-L14

martinklepsch avatar Apr 01 '20 15:04 martinklepsch