Skip to content

Custom block code and msg #398

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

Merged
merged 5 commits into from
Jan 3, 2024
Merged

Custom block code and msg #398

merged 5 commits into from
Jan 3, 2024

Conversation

shashank11p
Copy link
Contributor

@shashank11p shashank11p commented Dec 14, 2023

Adding a FilterResult in the Filter API, so that filters can provide custom blocking status code and message along with the FilterResult.
Using this FilterResult to block and set the response status and message accordingly

@shashank11p shashank11p marked this pull request as ready for review January 2, 2024 10:57
Copy link

@ryanericson ryanericson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose this is pending discussion for GRPC

@shashank11p
Copy link
Contributor Author

I suppose this is pending discussion for GRPC

Yes, for now it's setting the Status description as the msg provided. I'll just revert that in grpc, and we will update grpc when we finalise how to set it for grpc.

@shashank11p
Copy link
Contributor Author

I suppose this is pending discussion for GRPC

Yes, for now it's setting the Status description as the msg provided. I'll just revert that in grpc, and we will update grpc when we finalise how to set it for grpc.

Reverted these. Right now, we do not add custom status and msgs for grpc.
We have added them for all other frameworks that we support

@shashank11p shashank11p merged commit 4570eef into main Jan 3, 2024
@shashank11p shashank11p deleted the customBlockCodeMsg branch January 3, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants