Add HTTP Client Factory into Java SDK
- Lingua principale
- Java
- Stelle
- 300
- Fork
- 230
- Merge medio
- 5g 1h
- PR unite (30g)
- 5
Descrizione
As we do in Dotnet today, it would be nice to give users the option to create an HTTP Client via the Java SDK through a factory. This would remove the current encapsulation around the existing invokeMethod and allow users additional options for HTTP Client without having to have all the method overloads.
For example in Dotnet:
```
var httpClient = DaprClient.CreateInvokeHttpClient();
var response = await httpClient.PostAsJsonAsync("http://order-processor/orders", order);
```
In the past we simplified this and now there is only HTTP for methodInvoke() and waitForSidecar(), but would be nice to standardize the SDKs: https://github.com/dapr/java-sdk/pull/1051
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia esaminando le API HTTP esistenti methodInvoke() e waitForSidecar() del Java SDK, quindi confronta il loro incapsulamento con l'esempio CreateInvokeHttpClient() di Dotnet e con la discussione precedente collegata. Il lavoro è completo quando il Java SDK fornisce una factory documentata per client HTTP che consenta le opzioni aggiuntive del client descritte nell'issue senza richiedere un overload del metodo per ogni caso.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100