Kck.Http.Abstractions 4.8.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Kck.Http.Abstractions --version 4.8.0
                    
NuGet\Install-Package Kck.Http.Abstractions -Version 4.8.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="Kck.Http.Abstractions" Version="4.8.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kck.Http.Abstractions" Version="4.8.0" />
                    
Directory.Packages.props
<PackageReference Include="Kck.Http.Abstractions" />
                    
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 Kck.Http.Abstractions --version 4.8.0
                    
#r "nuget: Kck.Http.Abstractions, 4.8.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 Kck.Http.Abstractions@4.8.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=Kck.Http.Abstractions&version=4.8.0
                    
Install as a Cake Addin
#tool nuget:?package=Kck.Http.Abstractions&version=4.8.0
                    
Install as a Cake Tool

Kck.Http.Abstractions

Resilient HTTP client abstractions with typed ApiResponse<T> wrapper — decouple application code from HttpClient implementation details.

Installation

dotnet add package Kck.Http.Abstractions

Quick Start

using Kck.Http.Abstractions;

// Program.cs — the provider (Kck.Http.Resilience): retry, circuit breaker and timeouts
builder.Services.AddKckHttpResilience(opt => opt.MaxRetryAttempts = 3);

public sealed record ChargeRequest(string Token, decimal Amount);
public sealed record PaymentResult(string PaymentId, string Status);

// Use IApiClient in a service (absolute URLs: the client has no base address)
public class PaymentGatewayService(IApiClient apiClient)
{
    private const string BaseUrl = "https://api.payment-gateway.example";

    public async Task<PaymentResult> ChargeAsync(ChargeRequest request, CancellationToken ct)
    {
        ApiResponse<PaymentResult> response = await apiClient.PostAsync<PaymentResult>($"{BaseUrl}/v1/charge", request, ct);
        if (!response.IsSuccess)
            throw new InvalidOperationException($"Payment failed ({response.StatusCode}): {response.ErrorMessage}");
        return response.Data!;
    }
}

Configuration

Property Description Default
Http:TimeoutSeconds Per-request timeout 30
Http:RetryCount Polly retry attempts on transient failures 3
Http:CircuitBreakerThreshold Failures before circuit opens 5

Resources

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.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Kck.Http.Abstractions:

Package Downloads
Kck.Http.Resilience

Polly-backed IApiClient implementation using Microsoft.Extensions.Resilience. Supports named resilience pipelines with retry, circuit breaker, and timeout strategies. Registered via AddKckHttpClient<TClient>().

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0 377 11/2/2026
4.8.0 643 10/31/2026
Loading failed