Skip to content

Pass end_of_stream to header callbacks. #25

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 1 commit into from
Jun 1, 2020
Merged

Pass end_of_stream to header callbacks. #25

merged 1 commit into from
Jun 1, 2020

Conversation

gbrail
Copy link
Contributor

@gbrail gbrail commented May 29, 2020

This adds the same end_of_stream flag to the on_request_headers
and on_response_headers callbacks that Envoy makes for non-WASM filters.
This way it is possible to write a filter that can operate on the
request or response body but still be resilient if no body is present.

This is an incompatible change -- WASM filters will need to be rebuilt with the additional flag on the proxy_on_request_headers and proxy_on_response_headers flags added.

I'll submit the matching PRs for the other two repos once this one is merged.

Signed-off-by: Gregory Brail [email protected]

This adds the same end_of_stream flag to the on_request_headers
and on_response_headers callbacks that Envoy makes for non-WASM filters.
This way it is possible to write a filter that can operate on the
request or response body but still be resilient if no body is present.

Signed-off-by: Gregory Brail <[email protected]>
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.

2 participants