CoreSystem.Http
1.0.3
See the version list below for details.
dotnet add package CoreSystem.Http --version 1.0.3
NuGet\Install-Package CoreSystem.Http -Version 1.0.3
<PackageReference Include="CoreSystem.Http" Version="1.0.3" />
<PackageVersion Include="CoreSystem.Http" Version="1.0.3" />
<PackageReference Include="CoreSystem.Http" />
paket add CoreSystem.Http --version 1.0.3
#r "nuget: CoreSystem.Http, 1.0.3"
#:package CoreSystem.Http@1.0.3
#addin nuget:?package=CoreSystem.Http&version=1.0.3
#tool nuget:?package=CoreSystem.Http&version=1.0.3
🌐 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.
✨ 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 | Versions 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. |
-
net8.0
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.
Initial stable release.
• HTTP response capture
• HTTP response replay
• Header preservation
• ASP.NET Core integration
• Dependency Injection support
• Production-ready implementation