proxy-wasm-cpp-host
proxy-wasm-cpp-host copied to clipboard
WebAssembly for Proxies (C++ host implementation)
The `default-features=false` is not present in wasmtime v9.0.3 c-api ( [LINK ](https://github.com/bytecodealliance/wasmtime/blob/271b605e8d3d44c5d0a39bb4e65c3efb3869ff74/crates/c-api/Cargo.toml#L23)) , but it was still present in Cargo.toml in this repo (bazel/cargo/wasmtime/Cargo.toml) This PR removes that i.e. enables...
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...
Test proxy-wasm/proxy-wasm-cpp-sdk#157
Implements https://github.com/proxy-wasm/spec/pull/38. @PiotrSikora @mathetake @anuraaga please see if going in right direction overall. Will add unit tests once confirmed. I have tested the changes manually. Related changes in envoy, https://github.com/envoyproxy/envoy/pull/26364...
When I remove .bazelversion (5.2.0) I get some build errors. One fix is below, I'll send a PR. ``` # Upgrade googletest to v1.13.0 to support bazel 6+ http_archive( name...
Signed-off-by: Ryan Northey
We have a use case in which we buffer locally part of each body chunk and send it later, together with the following chunk. On the last chunk, we send...
`addAfterVmCallAction` and `doAfterVmCallActions` are used by the context to execute functions after vm calls, such as `onRequestHeaders`: https://github.com/proxy-wasm/proxy-wasm-cpp-host/blob/72ce32f7b11f9190edf874028255e1309e41690f/src/context.cc#L312-L324 If `sendLocalReply` has been added to `after_vm_call_actions_` via `addAfterVmCallAction`: https://github.com/envoyproxy/envoy/blob/main/source/extensions/common/wasm/context.cc#L1635-L1645 Here `f()`...
Currently the V8 integration [explicitly disables](https://github.com/proxy-wasm/proxy-wasm-cpp-host/blob/624ef2edac2cdc086e0339f36b32ef1a2ed7e270/src/v8/v8.cc#L45) the [Liftoff](https://v8.dev/blog/liftoff) compiler. AIUI this is to force V8 to only use TurboFan for code generation, so that in uses such as Envoy where...