-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
should it support jsonp? #1480
Comments
What is jsonp? |
Looks to me like you can implement your own marshaler and use a custom content-type to support this. I don't think we'll add first class support for this. Please have a look at https://grpc-ecosystem.github.io/grpc-gateway/docs/customizingyourgateway.html for an example. |
@johanbrandhorst the custom marshaler can only get the response message from handle, but the JSONP's response also need the callback function name from the url query. so how can I transfer the value from http.Request to the marshal graceful ? |
We don't currently have that capability, no, but there was some discussion around adding a |
yes, of course interested if I can, let me first understand your discussion about the second edition, and then try to do it. |
🚀 Feature
I have a service need to use grpc, but there are some api support jsonp for frontend. If change to use grpc protocol and it should support http(s) too, but I found this project not support jsonp.
The text was updated successfully, but these errors were encountered: