-
Notifications
You must be signed in to change notification settings - Fork 101
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
Setting gRPC status in http response #148
Comments
Do we need to expose? maybe instead of return -1 https://github.com/proxy-wasm/proxy-wasm-rust-sdk/blob/master/src/hostcalls.rs#L721 we can map http code to the closest grpc code |
@PiotrSikora let us know what you think about this please |
Note that some hosts (e.g. Envoy v1.31+) already map HTTP status codes from send_http_response() to gRPC status codes, when talking with gRPC clients, so this API is needed only when more control is needed. Fixes proxy-wasm#148. Signed-off-by: Piotr Sikora <[email protected]>
Note that some hosts (e.g. Envoy v1.31+) already map HTTP status codes from send_http_response() to gRPC status codes, when talking with gRPC clients, so this API is needed only when more control is needed. Fixes proxy-wasm#148. Signed-off-by: Piotr Sikora <[email protected]>
This should be fixed in #248. Note that Envoy doesn't support sending gRPC messages using |
…y-wasm#248) Note that some hosts (e.g. Envoy v1.31+) already map HTTP status codes from send_http_response() to gRPC status codes, when talking with gRPC clients, so this API is needed only when more control is needed. Fixes proxy-wasm#148. Signed-off-by: Piotr Sikora <[email protected]>
…y-wasm#248) Note that some hosts (e.g. Envoy v1.31+) already map HTTP status codes from send_http_response() to gRPC status codes, when talking with gRPC clients, so this API is needed only when more control is needed. Fixes proxy-wasm#148. Signed-off-by: Piotr Sikora <[email protected]>
Is this possible? It looks like the underlying interface may support it, but it doesn’t seem to be public.
The text was updated successfully, but these errors were encountered: