Trellis.Http.Abstractions 3.0.0-alpha.721

This is a prerelease version of Trellis.Http.Abstractions.
dotnet add package Trellis.Http.Abstractions --version 3.0.0-alpha.721
                    
NuGet\Install-Package Trellis.Http.Abstractions -Version 3.0.0-alpha.721
                    
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="Trellis.Http.Abstractions" Version="3.0.0-alpha.721" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Trellis.Http.Abstractions" Version="3.0.0-alpha.721" />
                    
Directory.Packages.props
<PackageReference Include="Trellis.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 Trellis.Http.Abstractions --version 3.0.0-alpha.721
                    
#r "nuget: Trellis.Http.Abstractions, 3.0.0-alpha.721"
                    
#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 Trellis.Http.Abstractions@3.0.0-alpha.721
                    
#: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=Trellis.Http.Abstractions&version=3.0.0-alpha.721&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Trellis.Http.Abstractions&version=3.0.0-alpha.721&prerelease
                    
Install as a Cake Tool

Trellis.Http.Abstractions

NuGet Package

HTTP-aware abstractions for Trellis boundary code.

Requires .NET 11. HttpError and WriteOutcome<T> use C# 15 closed records for compiler-checked exhaustive matching; case payloads and HTTP contracts are unchanged.

Installation

dotnet add package Trellis.Http.Abstractions

Trellis.Asp and Trellis.Http reference this package transitively; add it directly only when boundary code needs to construct or inspect these types.

Quick Example

using Trellis;

var error = new Error.TransportFault(
    new HttpError.PreconditionRequired(PreconditionKind.IfMatch)
    {
        Detail = "This operation requires an If-Match header.",
    });

Key Features

  • HttpError — closed union of HTTP transport failures (405, 406, 412, 413, 415, 416, 428).
  • AuthChallenge, EntityTagValue, PreconditionKind, RetryAfterValue — reusable HTTP payload/value types.
  • AggregateETagExtensions, RepresentationMetadata, WriteOutcome<T> — conditional-request and response-shaping helpers shared by server/client packages. The static WriteOutcome factory (WriteOutcome.Updated(value, metadata), Created(...), …) returns the base WriteOutcome<T>, so write results bind the Result<WriteOutcome<T>> response overloads without a cast.
  • Error.TransportFault(ITransportFault) integration via HttpError : ITransportFault.

WriteOutcome.Created(value) leaves its optional location to the HTTP boundary. Trellis.Asp can generate it through the endpoint builder; explicit outcome locations take precedence, and without either source the 201 response omits Location.

Documentation

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Trellis.Http.Abstractions:

Package Downloads
Trellis.Asp

ASP.NET Core integration for Trellis. Result-to-HTTP response mapping, named-route pagination links without an API-versioning dependency, rate-limit rejection handling, scalar value validation, JSON converters (with bundled AOT source generator), and ASP.NET actor providers (Claims, Entra, Easy Auth, Development) for Trellis.Authorization.

Trellis.Http

HTTP client extensions for Railway Oriented Programming. Provides fluent extension methods to handle HttpResponseMessage with Result and Maybe monads, including error handling for specific status codes and JSON deserialization.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0-alpha.721 60 11/15/2026
3.0.0-alpha.582 204 10/19/2026
3.0.0-alpha.574 278 10/14/2026
3.0.0-alpha.571 103 10/13/2026
3.0.0-alpha.557 186 10/8/2026
3.0.0-alpha.554 153 10/8/2026
3.0.0-alpha.553 90 10/7/2026
3.0.0-alpha.542 142 10/5/2026
3.0.0-alpha.539 113 10/4/2026
3.0.0-alpha.532 158 10/2/2026
3.0.0-alpha.527 110 10/1/2026
3.0.0-alpha.526 89 9/30/2026
3.0.0-alpha.524 88 9/27/2026
3.0.0-alpha.520 110 9/25/2026
3.0.0-alpha.516 261 9/22/2026
3.0.0-alpha.513 101 9/22/2026
3.0.0-alpha.505 213 9/13/2026
3.0.0-alpha.495 290 8/24/2026
3.0.0-alpha.458 264 8/19/2026
3.0.0-alpha.455 181 8/19/2026
Loading failed