You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Folks,
I am specifically looking to intercept the completed response, before it writes the bytes to the wire. (Trying to log the message body, but with some masking on certain fields when necessary.)
In HttpServerFilter it only have HttpRequest. So only way to access response path on a server filter is to subscribe on to Publisher on response.( example chain.proceed(request).subscribe().
But here, ideally I have to subscribe on a separate thread pool or use same micronaut server task.io executor pool. I am trying to avoid using a new thread again from the server pool, just to intercept the final completed response.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Folks,
I am specifically looking to intercept the completed response, before it writes the bytes to the wire. (Trying to log the message body, but with some masking on certain fields when necessary.)
In HttpServerFilter it only have HttpRequest. So only way to access response path on a server filter is to subscribe on to Publisher on response.( example chain.proceed(request).subscribe().
But here, ideally I have to subscribe on a separate thread pool or use same micronaut server task.io executor pool. I am trying to avoid using a new thread again from the server pool, just to intercept the final completed response.
Beta Was this translation helpful? Give feedback.
All reactions