CoreSystem.Http 1.0.0

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

🌐 CoreSystem.Http

Build HTTP features once. Reuse them everywhere.

Reusable HTTP infrastructure for ASP.NET Core and .NET 8.

CoreSystem.Http provides reusable infrastructure for capturing and replaying HTTP responses in ASP.NET Core applications. It offers lightweight, dependency-free components that simplify response interception while promoting code reuse across middleware, pipelines, and application frameworks.

Designed as a foundational building block, CoreSystem.Http can be used by caching, idempotency, auditing, logging, security, or any feature that requires capturing or reproducing HTTP responses.

NuGet Downloads License .NET


✨ Features

  • ✅ HTTP response capture
  • ✅ HTTP response replay
  • ✅ Response body buffering
  • ✅ Header preservation
  • ✅ HEAD request support
  • ✅ Lightweight and dependency-free
  • ✅ Built for ASP.NET Core
  • ✅ Reusable across multiple frameworks and libraries

📦 Installation

dotnet add package CoreSystem.Http

🚀 Quick Start

Register CoreSystem.Http:

builder.Services.AddCoreHttp();

Inject the required services:

public sealed class MyHandler(
    IResponseCapture responseCapture,
    IHttpResponseWriter responseWriter)
{
}

Capture an HTTP response:

CapturedResponse response =
    await responseCapture.CaptureAsync(
        context,
        next);

Replay the captured response:

await responseWriter.WriteAsync(
    context,
    response);

📖 Public API

CoreSystem.Http intentionally exposes a small and focused public API.

Type Description
IResponseCapture Captures the HTTP response generated by the ASP.NET Core request pipeline.
IHttpResponseWriter Writes a previously captured response back to the current HttpContext.
CapturedResponse Represents the captured response body, status code, and headers.
AddCoreHttp() Registers all required CoreSystem.Http services.

🏗 Architecture

Application
      │
      ▼
IResponseCapture
      │
      ▼
ResponseCapture
      │
      ▼
CapturedResponse
      ▲
      │
HttpResponseWriter
      │
      ▼
HttpResponse

🎯 Use Cases

CoreSystem.Http serves as reusable infrastructure for features such as:

  • HTTP response caching
  • Idempotency
  • Audit logging
  • Response transformation
  • API gateways
  • Reverse proxies
  • Middleware development
  • Custom ASP.NET Core frameworks

📚 Documentation

The full documentation includes:

  • Getting Started
  • Architecture
  • Dependency Injection
  • Response Capture
  • Response Replay
  • Extensibility
  • Best Practices

Visit the GitHub repository for the complete documentation.


🤝 Contributing

Issues, discussions and pull requests are welcome.


📄 License

Released under the MIT License.

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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 CoreSystem.Http:

Package Downloads
CoreSystem.Idempotency

Production-ready idempotency framework for ASP.NET Core that guarantees exactly-once request processing with Redis and PostgreSQL providers, request fingerprinting, response replay, and native OpenTelemetry support.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 94 7/26/2026
1.0.3 84 7/24/2026
1.0.2 85 7/24/2026
1.0.1 80 7/24/2026
1.0.0 83 7/23/2026

Initial stable release.
• HTTP response capture
• HTTP response replay
• Header preservation
• ASP.NET Core integration
• Dependency Injection support
• Production-ready implementation