Middleware Pattern For HttpClient With Delegating Handlers

Milan Jovanović
Milan Jovanović
14.6 هزار بار بازدید - 11 ماه پیش - ☄️ Master the Modular Monolith
☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: Patreon: milanjovanovic

HttpClient allows you to send HTTP requests to external services. But do you know how to add middleware to an outgoing request? Middleware allows you to add behavior before or after the request. And you can also do that with HttpClient requests using custom message handlers. Find out how in this video.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
@milanjovanovictech

Chapters
0:00 Taking a look at the typed HttpClinet
1:40 Adding authentication headers using DelegatingHandler
6:52 Creating logging middleware with a DelegatingHandler
10:27 Resilient DelegatingHandler with retries using Polly
11 ماه پیش در تاریخ 1402/06/10 منتشر شده است.
14,600 بـار بازدید شده
... بیشتر