-
Notifications
You must be signed in to change notification settings - Fork 106
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
add new HTTP header based on data from body #114
Comments
I have the same problem. On my flow, I need to extract a client_id from an auth request then add it to the headers like If I add
|
Looks like limitation of wasm-proxy in general that setting headers is possible only in This would mean that one is not able to replicate literally the first Lua Envoy example using wasm. |
Hi,
I had a use case were I wanted to add a new header (to upstream request) by parsing a value from the body of the downstream request. Unfortunately I'm not very familiar with writing wasm filters and I got the following result.
code:
I implemented
on_http_request_headers
andon_http_request_body
ofHttpContext
to doIn
on_http_request_headers
that works. Inon_http_request_body
I get the following error:I know that this question maybe overlaps with how the envoy configuration is done (request buffering for example) but first I want to know if the proxy wasm lifecycle in general allows such a behaviour.
The text was updated successfully, but these errors were encountered: