zijianhuang / webapiclientgen

Strongly Typed Client API Generators generate strongly typed client APIs in C# .NET and in TypeScript for jQuery and Angular 2+ from ASP.NET Web API and .NET Core Web API
MIT License
167 stars 38 forks source link

utilize HttpClientJsonExtensions.GetFromJsonAsync and alike #160

Closed ZijianFLG closed 2 weeks ago

ZijianFLG commented 2 months ago

https://learn.microsoft.com/en-us/dotnet/api/system.net.http.json.httpclientjsonextensions.getfromjsonasync

HttpClientJsonExtensions

since the primary support has been shifted from newtonsoft.json to system.text.json, it may be a good time to utilize this extensions to make the generated codes even shorter.

zijianhuang commented 2 weeks ago

Not to do it because I need to support custom request headers manipulation.