Fork me on GitHub
#yada
<
2016-02-21
>
malcolmsparks10:02:47

No, that's the wrong path. It's quite rare that you ever need to change the interceptor chain, it should only be changed in exceptional circumstances

malcolmsparks10:02:59

In your case I would do something like this:

malcolmsparks12:02:18

I've added a GET method just so you can see and test it

malcolmsparks12:02:55

The key thing to understand here is that you can access the :response entry of the context and return a modification of it.

malcolmsparks12:02:40

The method 'proxies' in yada.methods do try to cover most cases (status codes) based on what you return. However, they can't always deduce everything so you are always allowed to return a response yourself (this is the escape hatch)