Skip to content

Add HTTP Client Factory into Java SDK #1319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alicejgibbons opened this issue Apr 21, 2025 · 0 comments
Open

Add HTTP Client Factory into Java SDK #1319

alicejgibbons opened this issue Apr 21, 2025 · 0 comments

Comments

@alicejgibbons
Copy link

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: #1051

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant