An open API service indexing awesome lists of open source software.

https://github.com/aimenux/httpdelegatinghandlerdemo

Using http delegating handlers
https://github.com/aimenux/httpdelegatinghandlerdemo

application-insights console-app delegation-handler fluent-assertions net60 serilog xunit-tests

Last synced: 13 days ago
JSON representation

Using http delegating handlers

Awesome Lists containing this project

README

          

[![.NET](https://github.com/aimenux/HttpDelegatingHandlerDemo/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/aimenux/HttpDelegatingHandlerDemo/actions/workflows/ci.yml)

# HttpDelegatingHandlerDemo
```
Using http delegating handlers
```

> In this repo, i m using [http delegation handlers](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.delegatinghandler) 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