Anarchy.Toolkit.Infrastructure.Http 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Anarchy.Toolkit.Infrastructure.Http --version 2.0.0
                    
NuGet\Install-Package Anarchy.Toolkit.Infrastructure.Http -Version 2.0.0
                    
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="Anarchy.Toolkit.Infrastructure.Http" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Anarchy.Toolkit.Infrastructure.Http" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Anarchy.Toolkit.Infrastructure.Http" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Anarchy.Toolkit.Infrastructure.Http --version 2.0.0
                    
#r "nuget: Anarchy.Toolkit.Infrastructure.Http, 2.0.0"
                    
#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.
#:package Anarchy.Toolkit.Infrastructure.Http@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Anarchy.Toolkit.Infrastructure.Http&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Anarchy.Toolkit.Infrastructure.Http&version=2.0.0
                    
Install as a Cake Tool

Anarchy.Toolkit.Infrastructure.Http

Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Infrastructure · Package catalog

Reusable HTTP client and repository plumbing for service integrations.

dotnet add package Anarchy.Toolkit.Infrastructure.Http
  • Derive client repositories from HttpRepositoryBase or ScopedHttpRepositoryBase.
  • Configure clients and compose the supplied delegating handlers, including timeout and MSAL certificate authentication handlers, as needed.
  • Keep application-specific endpoints and client behavior in the consuming service.

When to use it

Use this package in an infrastructure adapter that calls an external HTTP API and needs consistent client configuration, instrumentation or authentication. It is not a generated client: your application owns endpoint routes, payload contracts and retry/idempotency decisions.

How to use it

  1. Define an application-facing interface for the downstream operations and implement it with a repository derived from the appropriate HTTP repository base.
  2. Configure an HttpClient for the remote service and compose the supplied handlers only when needed, such as timeouts or MSAL certificate authentication. Supply the host's AppTelemetry for instrumentation.
  3. Translate downstream responses and errors at the adapter boundary. Configure base addresses, credentials and timeouts per environment rather than embedding them in the repository.

Use mocks for business-rule unit tests and a controlled HTTP endpoint for integration tests that need to verify serialization, authentication and failure handling.

Monitored requests emit execution counts and durations through the injected telemetry. An HTTP response is returned without checking its status; a non-success status is not a telemetry failure unless the caller treats it as one.

See the toolkit overview and architecture guide.

Releases

2.0.0

  • Replace the unused Observer constructor argument with AppTelemetry and monitor HTTP operations through the host's telemetry pipeline.

1.1.1

  • docs(packages): identify each package's pillar and layer
  • build(packages): attribute the copyright to Leandro Melão Medeiros
  • build: relicense under Apache-2.0 and update the package metadata

1.1.0

  • build(deps): upgrade Swashbuckle.AspNetCore to 11.0.1 and Microsoft.OpenApi to 3.11.1

1.0.6

  • docs: expand XML docblocks across all projects for the DocFX API reference

1.0.5

  • refactor(src): clean up code style across library packages

1.0.3

  • build: migrate local automation to build tooling

1.0.2

  • docs: expand package guides and release histories

1.0.1

  • Added a package-specific NuGet README.

1.0.0

  • Introduced HTTP repository bases, client configuration, authentication and timeout handlers, and request and response helpers.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Anarchy.Toolkit.Infrastructure.Http:

Package Downloads
Anarchy.Toolkit.Web

Shared REST API pipeline: startup bases, entry points, middleware, auth, swagger, and presentation helpers.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1 0 11/21/2026
2.0.0 0 11/20/2026
1.1.1 128 11/17/2026
1.1.0 124 11/17/2026
1.0.6 118 11/16/2026
1.0.5 163 11/14/2026
1.0.4 145 11/9/2026
1.0.3 110 11/9/2026
1.0.1 126 11/6/2026
1.0.0 122 11/5/2026

Initial release.