DEV Community šŸ‘©ā€šŸ’»šŸ‘Øā€šŸ’»

Discussion on: ReUsable UseFetch Utility in C#

Collapse
kanebarton profile image
Kane Barton

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....