proxy-wasm-go-host
proxy-wasm-go-host copied to clipboard
WebAssembly for Proxies (Golang host implementation)
When wasm implements the ResponseBody function and is called using v2, an error will be reported ```go func (ctx *httpContext) OnHttpResponseBody(numHeaders int, endOfStream bool) types.Action { proxywasm.ReplaceHttpResponseBody([]byte("proxywasm.ReplaceHttpResponseBody")) return types.ActionContinue }...
Hello! It was pointed out to me (see: https://github.com/proxy-wasm/proxy-wasm-rust-sdk/issues/104) that Proxy-Wasm Go Host doesn't expose all Proxy-Wasm ABI v0.1.0 hostcalls. Looking at the code, neither imports nor exports match the...
## action cd example and replace the wasm file to new file which handles HTTP headers like [this](https://github.com/proxy-wasm/proxy-wasm-rust-sdk/blob/v0.1.4/examples/http_headers.rs#L46). Then `go run .` run the example. ## expected behaviour If the...
This allows for setting critical wazero module configuration. For example, to use the host time: ``` import ( "github.com/tetratelabs/wazero" wazeroHost "mosn.io/proxy-wasm-go-host/wazero" ) ... // compile the wasm module module :=...