-
Notifications
You must be signed in to change notification settings - Fork 70
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
re support the StopIteration status #417
Comments
yea, it's the same issue. This is a very important feature for a bunch of filters.
|
You don't need to set |
It just an example, more usual cases are do something based on the body and change the request headers. Or just need to do some verification based on body and need to stop iteration of header filter chain. |
Agreed. And as you know we're adding support for better control over that in ABI v0.3 (proxy-wasm/spec#63) to address other use cases. However, I wanted to point out that your example is an anti-pattern and you should never buffer the request/response body in order to set |
Yeah, basically we will remove the content length directly to force Envoy to used the chunked way in practices. I will update the description to avoid misdirecting others. |
We converted all StopIteration to StopAll at #95.
It make the wasm filter couldn't work in some typically scenarios, for example, custom auth may require to parse body to complete the authentication, but return
Continue
when calling onRequestHeaders will proxy headers to uptream before we complete the authentication, returnStopAll
will prohibit the wasm to access body.The text was updated successfully, but these errors were encountered: