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

Can Call onRequestTrailers() and onResponseTrailers unconditionally??? #147

Open
coolg92003 opened this issue Dec 5, 2022 · 1 comment

Comments

@coolg92003
Copy link

Hi Expert,
If there is no Trailer in Request/Response, then I have no chance to add Trailer when after processing Request/Response.
Is it possible call those two API onRequestTrailers() and onResponseTrailers unconditionally?
if there is Not anything to do, then it can return Continue directly.

thanks
Cliff

@PiotrSikora
Copy link
Member

You can add trailers from the request/response body callbacks (e.g. upon receiving end_of_stream=True, which implies that there are no trailers).

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

No branches or pull requests

2 participants