Corvus.Text.Json.OpenApi.HttpTransport
5.1.16
dotnet add package Corvus.Text.Json.OpenApi.HttpTransport --version 5.1.16
NuGet\Install-Package Corvus.Text.Json.OpenApi.HttpTransport -Version 5.1.16
<PackageReference Include="Corvus.Text.Json.OpenApi.HttpTransport" Version="5.1.16" />
<PackageVersion Include="Corvus.Text.Json.OpenApi.HttpTransport" Version="5.1.16" />
<PackageReference Include="Corvus.Text.Json.OpenApi.HttpTransport" />
paket add Corvus.Text.Json.OpenApi.HttpTransport --version 5.1.16
#r "nuget: Corvus.Text.Json.OpenApi.HttpTransport, 5.1.16"
#:package Corvus.Text.Json.OpenApi.HttpTransport@5.1.16
#addin nuget:?package=Corvus.Text.Json.OpenApi.HttpTransport&version=5.1.16
#tool nuget:?package=Corvus.Text.Json.OpenApi.HttpTransport&version=5.1.16
Corvus.Text.Json.OpenApi.HttpTransport
HttpClient-based transport implementation for Corvus OpenAPI generated clients.
Usage
using Corvus.Text.Json.OpenApi;
using Corvus.Text.Json.OpenApi.HttpTransport;
await using var transport = new HttpClientTransport(new HttpClient
{
BaseAddress = new Uri("https://api.example.com"),
});
var client = new PetstorePetsClient(transport);
using ApiResponse response = await client.ListPetsAsync();
response.EnsureSuccess();
using var doc = ParsedJsonDocument<Pets>.Parse(response.Body);
// ... work with doc.RootElement ...
Design
This package provides a single type — HttpClientTransport — that bridges generated client code to System.Net.Http.HttpClient. Response bodies are read into ArrayPool<byte>-rented buffers, enabling zero-copy parsing via ParsedJsonDocument<T>.Parse(ReadOnlyMemory<byte>).
The transport is shipped in a separate assembly so consumers don't pull in HTTP dependencies unless they need them. Alternative transports (e.g. for testing, gRPC, or message queues) can implement IApiTransport independently.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- Corvus.Text.Json.OpenApi (>= 5.1.16)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.1.16 | 62 | 6/10/2026 |
| 5.1.14 | 80 | 6/9/2026 |
| 5.1.13 | 79 | 6/9/2026 |
| 5.1.12 | 94 | 6/8/2026 |
| 5.1.11 | 96 | 6/7/2026 |
| 5.1.10 | 88 | 6/7/2026 |
| 5.1.9 | 106 | 6/6/2026 |
| 5.1.8 | 85 | 6/5/2026 |
| 5.1.7 | 89 | 6/5/2026 |
| 5.1.6 | 91 | 6/4/2026 |
| 5.1.5 | 95 | 6/2/2026 |
| 5.1.4 | 103 | 6/2/2026 |
| 5.1.3 | 96 | 5/31/2026 |
| 5.1.2 | 94 | 5/31/2026 |
| 5.1.1 | 105 | 5/31/2026 |
| 5.1.0 | 107 | 5/28/2026 |