dapr / dapr/java-sdk

support invokeXXX method return Response

Aperta
#751 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
P2
Lingua principale
Java
Stelle
300
Fork
230
Merge medio
5g 1h
PR unite (30g)
5

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.