I’d suggest avoiding a custom developed utility class like this as there are some common pitfalls (e.g., HttpClient should be static, correctly using async/await, no transient retries, memory over allocations not using strings) but instead use a more standard library like: System.Net.Http.Json
I’d suggest avoiding a custom developed utility class like this as there are some common pitfalls (e.g., HttpClient should be static, correctly using async/await, no transient retries, memory over allocations not using strings) but instead use a more standard library like: System.Net.Http.Json
docs.microsoft.com/en-us/dotnet/ap....