dapr / dapr/java-sdk

support invokeXXX method return Response

Offen
#751 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
P2
Vorherrschende Sprache
Java
Sterne
300
Forks
230
Ø Merge
5 T. 1 Std.
Gemergte PRs (30 T.)
5

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.