Persilsoft.HttpDelegatingHandlers 1.0.7

dotnet add package Persilsoft.HttpDelegatingHandlers --version 1.0.7
NuGet\Install-Package Persilsoft.HttpDelegatingHandlers -Version 1.0.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Persilsoft.HttpDelegatingHandlers" Version="1.0.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Persilsoft.HttpDelegatingHandlers --version 1.0.7
#r "nuget: Persilsoft.HttpDelegatingHandlers, 1.0.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Persilsoft.HttpDelegatingHandlers as a Cake Addin
#addin nuget:?package=Persilsoft.HttpDelegatingHandlers&version=1.0.7

// Install Persilsoft.HttpDelegatingHandlers as a Cake Tool
#tool nuget:?package=Persilsoft.HttpDelegatingHandlers&version=1.0.7

Persilsoft.HttpDelegatingHandlers

Provides an exception handler for HTTP requests.


Example

First, you need to register the handler, then add the http handler to the HttpClient

using Persilsoft.HttpDelegatingHandlers;
using ServiceCollectionExtensions;

services.AddExceptionDelegatingHandler();

services.AddHttpClient("Persilsoft", httpClient =>
{
    httpClient.BaseAddress = new Uri("https://api.persilsoft.com/");
}).AddHttpMessageHandler<ExceptionDelegatingHandler>();

The handler will throw an HttpRequestException.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Persilsoft.HttpDelegatingHandlers:

Package Downloads
Persilsoft.Recaptcha.Blazor

Package Description

Persilsoft.Localizer.Blazor

A simple localization tool for Blazor apps

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.7 49 5/22/2024
1.0.6 213 5/18/2024
1.0.5 104 5/18/2024
1.0.4 74 5/18/2024
1.0.3 257 5/17/2024
1.0.2 249 5/4/2024
1.0.1 88 5/1/2024
1.0.0 117 4/14/2024