* Explain scoped DI in HttpClient handlers
* Include relevant sample code in the topic
* Explain scoped DI in HttpClient handlers by serpent5
* Explain scoped DI in HttpClient handlers by serpent5
* clean up
* clean up
* clean up
* clean up
* clean up
* clean up
* Apply suggestions from code review
Co-authored-by: Kirk Larkin <serpent5@pm.me>
* Update aspnetcore/fundamentals/http-requests/samples/3.x/HttpRequestsSample/Startup.cs
Co-authored-by: Kirk Larkin <serpent5@pm.me>
Co-authored-by: Kirk Larkin <serpent5@pm.me>
* dotnet new webapp
* Cleanup scaffolding and move to CDNs/inline CSS
* Add basic Web API for TodoItems
* RP examples for hitting the API with CRUD
* Use a Typed Client for deduplication
* Use the incoming URL to determine HttpClient.BaseAddress
* Add an explanation to the topic
* Update aspnetcore/fundamentals/http-requests.md
Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>
Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>
* Use System.Text.Json for 3.0 HTTP Requests topic.
* Update to 3.0 code.
* C#8 goodness.
* Note that Json.NET + ReadAsAsync<T> can be seen in previous versions.
* Update Startup.cs
* IHttpClientFactory to Text.Json
* IHttpClientFactory to Text.Json
* clean up
* clean up
* clean up
* Apply suggestions from code review
Co-Authored-By: Kirk Larkin <6025110+serpent5@users.noreply.github.com>
* clean up
Addresses #8579
I might be getting the hang of **_find and replace_** now. 😝
This doesn't touch a couple that ref 2.2.0. I'll tidy those up on https://github.com/aspnet/Docs/issues/8518 after 2.2 RTM.