Skip to content

aimenux/HttpDelegatingHandlerDemo

Repository files navigation

.NET

HttpDelegatingHandlerDemo

Using http delegating handlers

In this repo, i m using http delegation handlers for various purposes :

  • TimingHandler : log request processing time

  • LoggingHandler : log request/response body

  • ValidationHandler : validate required request headers

  • CorrelationHandler : add correlation id to request headers

  • RetryHandler : retry request when transient errors occurs

Tools : vs22, net 6.0, console-app, app-insights, xunit, fluent-assertions