how to intercept response universally

35 views
Skip to first unread message

victo...@gmail.com

unread,
Apr 29, 2015, 3:21:20 PM4/29/15
to membrane...@googlegroups.com
Is it possible to intercept all membrane responses with a <groovy> tag so that all responses (not just the ones defined in <serviceProxy>) can be filtered and modified based on cerntain log?
e.g.

<groovy>
if (exc.response.responseCode != 200)
exc.response.header.add("X-ServerError", "some message")
</groovy>

thanks and regards.
Victor
Reply all
Reply to author
Forward
0 new messages