Anarchy.Toolkit.Infrastructure.Http
1.0.3
See the version list below for details.
dotnet add package Anarchy.Toolkit.Infrastructure.Http --version 1.0.3
NuGet\Install-Package Anarchy.Toolkit.Infrastructure.Http -Version 1.0.3
<PackageReference Include="Anarchy.Toolkit.Infrastructure.Http" Version="1.0.3" />
<PackageVersion Include="Anarchy.Toolkit.Infrastructure.Http" Version="1.0.3" />
<PackageReference Include="Anarchy.Toolkit.Infrastructure.Http" />
paket add Anarchy.Toolkit.Infrastructure.Http --version 1.0.3
#r "nuget: Anarchy.Toolkit.Infrastructure.Http, 1.0.3"
#:package Anarchy.Toolkit.Infrastructure.Http@1.0.3
#addin nuget:?package=Anarchy.Toolkit.Infrastructure.Http&version=1.0.3
#tool nuget:?package=Anarchy.Toolkit.Infrastructure.Http&version=1.0.3
Anarchy.Toolkit.Infrastructure.Http
Reusable HTTP client and repository plumbing for service integrations.
dotnet add package Anarchy.Toolkit.Infrastructure.Http
- Derive client repositories from
HttpRepositoryBaseorScopedHttpRepositoryBase. - 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
- Define an application-facing interface for the downstream operations and implement it with a repository derived from the appropriate HTTP repository base.
- Configure an
HttpClientfor the remote service and compose the supplied handlers only when needed, such as timeouts or MSAL certificate authentication. Supply the host'sObserverfor instrumentation. - 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.
See the toolkit overview and architecture guide.
Releases
1.0.3
- build: migrate local automation to NUKE
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 | Versions 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. |
-
net10.0
- Anarchy.Toolkit.Core (>= 1.0.3)
- Anarchy.Toolkit.Core.Observability (>= 1.0.3)
- Humanizer (>= 3.0.10)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.14)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Http (>= 10.0.14)
- Microsoft.Identity.Client (>= 4.92.0)
- Newtonsoft.Json (>= 13.0.4)
- Serilog (>= 4.4.0)
- Serilog.Sinks.Console (>= 6.1.1)
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.
Initial release.