proxy-wasm-cpp-sdk icon indicating copy to clipboard operation
proxy-wasm-cpp-sdk copied to clipboard

Can I transfrom http request into tcp on HTTP Filter

Open orangetangerine opened this issue 4 years ago • 0 comments

Can I transfrom http request into tcp on HTTP Filter

Description: We have an old RPC framework running on production, with a self-designed RPC protocol on TCP. And I've made a transformer to turn gRPC request onto this private RPC request, so that these old services can run in Kubernetes, work on L7, and be controlled by Istio-proxy. My question is, can I do this transform by WASM with Istio? If I apply a custom wasm on HTTP Filter, how can I turn gPRC request to TCP bytes(non HTTP format).

By the way, I found ReplaceDownstreamData in Go's APIs (not found in CPP's), but it seems only available in TcpContext, not HttpContext.

orangetangerine avatar Jul 18 '21 07:07 orangetangerine