JorgeCostaMacia.Http
3.0.2
Prefix Reserved
dotnet add package JorgeCostaMacia.Http --version 3.0.2
NuGet\Install-Package JorgeCostaMacia.Http -Version 3.0.2
<PackageReference Include="JorgeCostaMacia.Http" Version="3.0.2" />
<PackageVersion Include="JorgeCostaMacia.Http" Version="3.0.2" />
<PackageReference Include="JorgeCostaMacia.Http" />
paket add JorgeCostaMacia.Http --version 3.0.2
#r "nuget: JorgeCostaMacia.Http, 3.0.2"
#:package JorgeCostaMacia.Http@3.0.2
#addin nuget:?package=JorgeCostaMacia.Http&version=3.0.2
#tool nuget:?package=JorgeCostaMacia.Http&version=3.0.2
JorgeCostaMacia.Http
HTTP request/response base contracts — traceable abstract records and marker interfaces for messages that cross the HTTP layer, carrying a stable id, a correlation id and a UTC timestamp for consistent tracing across distributed systems.
Install
dotnet add package JorgeCostaMacia.Http
Types
| Type | For |
|---|---|
IRequestHttp |
marker for incoming HTTP request contracts |
IResponseHttp |
marker for outgoing HTTP response contracts |
RequestHttp |
abstract record request base with AggregateId / AggregateCorrelationId / AggregateOccurredAt |
ResponseHttp |
abstract record response base with the same traceability metadata |
Usage
using JorgeCostaMacia.Http.Domain;
public sealed record CreateCustomerRequest(string Name)
: RequestHttp(aggregateId: null, aggregateCorrelationId: null, aggregateOccurredAt: null);
// metadata is auto-filled: AggregateId (via GuidFactory — UUIDv7 on .NET 9+, v4 on .NET 8),
// AggregateCorrelationId (defaults to AggregateId), AggregateOccurredAt (UTC).
Requirements
One of the following SDKs: .NET 8 / 9 / 10 (.NET 10 recommended).
Depends on JorgeCostaMacia.GuidFactory.
About
JorgeCostaMacia.Http is part of http-net — ASP.NET Core building blocks, each scoped to a single concern and reusable across your services.
- Repository: github.com/JorgeCostaMacia/http-net
- Issues & requests: open an issue
- Contributing: CONTRIBUTING.md
- Security: report a vulnerability
Author: Jorge Costa Maciá
| 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 is compatible. 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 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
- JorgeCostaMacia.GuidFactory (>= 6.0.4)
-
net8.0
- JorgeCostaMacia.GuidFactory (>= 6.0.4)
-
net9.0
- JorgeCostaMacia.GuidFactory (>= 6.0.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on JorgeCostaMacia.Http:
| Package | Downloads |
|---|---|
|
JorgeCostaMacia.Http.ProblemDetails
RFC 7807 ProblemDetails responses enriched with request/trace/node ids and domain aggregate metadata, with handlers for domain and bad-request exceptions |
GitHub repositories
This package is not used by any popular GitHub repositories.