dapr / dapr/java-sdk

support invokeXXX method return Response

未关闭
#751 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
P2
主要语言
Java
星标
300
派生
230
平均合并
5 天 1 小时
30 天内合并 PR
5

描述

## 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)
![image](https://user-images.githubusercontent.com/25682169/175204261-039e16c1-1bbc-4eaa-9603-2df36cbabff4.png)

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.
```
invokeMethod(request,TypeRef)
```

贡献指南

打开贡献指南

调研方向

首先跟踪 Java SDK 的 invokeMethod/invokeXXX 入口点,以及 issue 中描述的现有 Jackson body 转换。检查 HTTP 和 gRPC 调用响应的表示方式,然后验证 invokeMethod(request, TypeRef) 能够提供响应代码、headers 和 body,同时不破坏当前的反序列化行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。