-
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
Returning 302 redirect as response #607
Comments
I thought there was an issue around having exact control of the raw http response body but I'm not seeing it now. I agree this is a use case that should be straightforward. |
@ubenzer, you may be able to do that by using https://godoc.org/github.com/grpc-ecosystem/grpc-gateway/runtime#WithOutgoingHeaderMatcher. The question whether this is a good practice or not remains. Perhaps @tmc can help to shed some light since I'm dubious right now. |
@ubenzer what did you end up doing? |
I ended up implementing our logic on the client side. In one request I get the URL for the image and in the second request, we get the image itself by using the response of the first request. This was implemented before I learned that such a thing I'll close this issue as this is not required for me anymore. |
Hi,
I am looking for a way to return 302 redirects to another URL as a response from grpc-gateway. In my research, I couldn't find a way to do it. In fact, I somewhat assume that it is not possible due to this.
It would be really nice to provide this functionality.
Please see this SO question of mine, that explains the same thing in detail.
The text was updated successfully, but these errors were encountered: