-
Notifications
You must be signed in to change notification settings - Fork 69
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 we support FilterHeadersStatus::StopIteration ? #367
Comments
@PiotrSikora any suggestions? |
AIUI #397 was sent for this. Do you want to discuss? This comment implies StopIteration is not good: proxy-wasm-cpp-host/src/context.cc Lines 497 to 499 in 04dfb94
Source enum: And I think these issues are likely related:
Want to close this issue as a dupe of #143? |
@martijneken Actually, StopIteration is very useful, although it might be too complex for hosts other than envoy. But for envoy, only by supporting StopIteration can these cases be implemented:
|
We have a usage scenario where we need to extract data from the request body, then store it in the request header, and perform routing matching based on the request header during routing, sample code:
however, StopIteration is forced to be converted to StopAllIterationAndWatermark in proxy-wasm-cpp-host, can we remove this forced conversion?
I think it would be better to let developers choose which state to use.
The text was updated successfully, but these errors were encountered: