-
Notifications
You must be signed in to change notification settings - Fork 210
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
support invokeXXX method return Response #751
Comments
I have talked with @naah69 about this issue and agreed with him that Dapr java sdk should support this feature because sometime the user need to get more information from HTTP response (for example, http headers). This will make dapr java sdk more flexibility. I will review the PR code. |
Is there any progress? |
We should create a new API that is HTTP specific instead of having a break change here. This API was originally designed to be protocol agnostic. |
Using an HTTP client directly (which is the preferred method for service invocation) is essentially HTTP specific and will address the problem described here. |
Discussion here: dapr/dotnet-sdk#526. cc @rynowak |
In Java SDK, we handle serialization on behalf of the user too (differently from .Net SDK). So there is an advantage of letting the SDK handle the abstraction for the user. |
Agreed |
Describe the proposal
it is not support return Response(with code and headers) in invokeXXX method now.
it just convert body data by jackson and return.(there is a bug that jackson can't convert the string without json format)
it is unsupport if somebody need code and header.
i think that it needs deserialize layer and response interface(implement of http and grpc) to adapt.
use the below code to get Response.
The text was updated successfully, but these errors were encountered: