Skip to content
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

http client choice #230

Open
GOVYANSONG opened this issue Apr 27, 2024 · 5 comments
Open

http client choice #230

GOVYANSONG opened this issue Apr 27, 2024 · 5 comments

Comments

@GOVYANSONG
Copy link

Hi team,

I am trying to understand how to best make http client call from inside wasm filter of envoy proxy. instead of dispatch_http_call, can I use reqwest-wasm instead because reqwest-wasm apparently supports wasm build target?

Thanks,

@antonengelhardt
Copy link

AFAIK, you can only make http calls using the built in proxy Wasm sdk methods, because the plugin is embedded into the envoy proxy and can only talk to the upstream clusters.

But I haven't tried it with reqwest-Wasm yet, so it'd be interesting to know if it works.

@foo4u
Copy link

foo4u commented May 23, 2024

@GOVYANSONG you should use dispatch_http_call to let Envoy handle the request.

@pi-pi-miao
Copy link

只能使用dispatch_http_call

@pi-pi-miao
Copy link

如果不想使用dispatch_http_call,那么使用dispatch_grpc_call或许是一个更好的选择

@pi-pi-miao
Copy link

@GOVYANSONG 使用 grpc调用可以参考 #254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants