-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using different Header, Body and Query filters for requests/responses #413
Comments
That should work actually. Can you share your filters?
…On Wed, Jan 23, 2019, 17:05 paulopossas ***@***.*** wrote:
Hi,first of all, thanks for this amazing library.
I've been using the same group of Header, Body and Query filters when
logging requests and responses. Now I want to have one singular group of
these filters for requests and another for responses. Is it possible to do
this?
I've tried to achieve this by creating a custom RequestFilter and
ResponseFilter but it's not working. The attributes I'm hiding from the
requests/responses aren't visible to the rest of my application. If the
Request/Response Filter is the correct approach for this issue, where can I
find an example of a custom filter?
Thanks in advance.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#413>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAaPnbk5jzYAuafCS00qCuHGYpku0iaFks5vGIg7gaJpZM4aPGfO>
.
|
I tried to make one that simply masked the Authorization header, it looked like this:
|
A quick update:
|
Hi, after more thinking, I found a solution. I'll post the code here for posterity. I used the query filter on the filtered body on form-urlencoded because the query params were being added to the body.
|
Hi,first of all, thanks for this amazing library.
I've been using the same group of Header, Body and Query filters when logging requests and responses. Now I want to have one singular group of these filters for requests and another for responses. Is it possible to do this?
I've tried to achieve this by creating a custom RequestFilter and ResponseFilter but it's not working. The attributes I'm hiding from the requests/responses aren't visible to the rest of my application. If the Request/Response Filter is the correct approach for this issue, where can I find an example of a custom filter?
Thanks in advance.
The text was updated successfully, but these errors were encountered: