Skip to content

About

Extensions for ASP.NET Core: RFC 7807 ProblemDetails with domain metadata, the exception handler, Serilog request logging, API versioning, OpenAPI and forwarded-headers defaults. NuGet packages JorgeCostaMacia.Http.*

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

http-dotnet

http-dotnet

Extensions for ASP.NET Core — request/response base contracts, RFC 7807 ProblemDetails with domain metadata, the exception handler, Serilog request logging, API versioning, OpenAPI and forwarded-headers defaults — each scoped to a single concern and shipped independently under JorgeCostaMacia.Http.*.

License Main Develop

Part of the JorgeCostaMacia.* family, alongside ddd-dotnet (whose exception hierarchy these handlers map to HTTP), bus-dotnet (messaging), quartz-dotnet and serilog-dotnet.

An independent project: it builds on ASP.NET Core through its own extension points (extensions on the options and builders the host already writes, middleware and exception handlers) and is not affiliated with Microsoft or the ASP.NET Core project.

Requirements

The .NET 10 SDK.

Packages

Package What it does
JorgeCostaMacia.Http HTTP request/response base contracts — traceable abstract records.
JorgeCostaMacia.Http.Exception Maps domain / validation / bad-request exceptions to HTTP status codes.
JorgeCostaMacia.Http.Exception.Serilog Serilog logging of unhandled exceptions, enriched with aggregate metadata.
JorgeCostaMacia.Http.ForwardedHeaders Forwarded-headers defaults for a service behind a proxy on the same host or Docker's bridge.
JorgeCostaMacia.Http.MinimalApi.Versioning URL-segment API versioning for Minimal APIs.
JorgeCostaMacia.Http.OpenApi Native OpenAPI setup with RFC 7807 ProblemDetails schema enrichment.
JorgeCostaMacia.Http.ProblemDetails Enriched RFC 7807 ProblemDetails responses with domain metadata and per-field errors.
JorgeCostaMacia.Http.Serilog Serilog request-logging middleware: body buffering, enrichment and a per-request summary.

Upgrading

What each version asks of you, when it asks anything, is in CHANGELOG.md.

Contact

About

Extensions for ASP.NET Core: RFC 7807 ProblemDetails with domain metadata, the exception handler, Serilog request logging, API versioning, OpenAPI and forwarded-headers defaults. NuGet packages JorgeCostaMacia.Http.*

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages