dapr / dapr/java-sdk

support invokeXXX method return Response

Đang mở
#751 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
P2
Ngôn ngữ chính
Java
Star
300
Fork
230
Merge trung bình
5 ngày 1 giờ
Pull request đã merge (30 ngày)
5

Mô tả

## 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)
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.