dapr / dapr/java-sdk

support invokeXXX method return Response

Ouverte
#751 7 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
P2
Langage dominant
Java
Étoiles
300
Forks
230
Merge moyen
5 j 1 h
PR mergées (30 j)
5

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.