Skip to content
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

Update REST Interceptors to support reading metadata #2263

Open
parthea opened this issue Nov 26, 2024 · 0 comments
Open

Update REST Interceptors to support reading metadata #2263

parthea opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@parthea
Copy link
Contributor

parthea commented Nov 26, 2024

It's currently not possible to read response metadata using REST interceptors. This feature is missing but was part of the original requirements.

metadata is supported in the pre_ methods but not the post_methods

{{ async_prefix }}def pre_{{ method.name|snake_case }}(self, request, metadata):
logging.log(f"Received request: {request}")
return request, metadata

{{ async_prefix }}def post_{{ method.name|snake_case }}(self, response):
logging.log(f"Received response: {response}")
return response

@parthea parthea added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Nov 26, 2024
@parthea parthea self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant