Soenneker.OpenHands.HttpClients
4.0.139
Prefix Reserved
dotnet add package Soenneker.OpenHands.HttpClients --version 4.0.139
NuGet\Install-Package Soenneker.OpenHands.HttpClients -Version 4.0.139
<PackageReference Include="Soenneker.OpenHands.HttpClients" Version="4.0.139" />
<PackageVersion Include="Soenneker.OpenHands.HttpClients" Version="4.0.139" />
<PackageReference Include="Soenneker.OpenHands.HttpClients" />
paket add Soenneker.OpenHands.HttpClients --version 4.0.139
#r "nuget: Soenneker.OpenHands.HttpClients, 4.0.139"
#:package Soenneker.OpenHands.HttpClients@4.0.139
#addin nuget:?package=Soenneker.OpenHands.HttpClients&version=4.0.139
#tool nuget:?package=Soenneker.OpenHands.HttpClients&version=4.0.139
Soenneker.OpenHands.HttpClients
Provides a cached HttpClient configured for the OpenHands Cloud API, including bearer authentication.
Install
dotnet add package Soenneker.OpenHands.HttpClients
Configuration
{
"OpenHands": {
"ApiKey": "your-api-key"
}
}
OpenHands:ClientBaseUrl, OpenHands:AuthHeaderName, and OpenHands:AuthHeaderValueTemplate can override the defaults.
Usage
using Soenneker.OpenHands.HttpClients.Abstract;
using Soenneker.OpenHands.HttpClients.Registrars;
services.AddOpenHandsOpenApiHttpClientAsSingleton();
IOpenHandsOpenApiHttpClient provider = serviceProvider
.GetRequiredService<IOpenHandsOpenApiHttpClient>();
HttpClient client = await provider.Get(cancellationToken);
HttpResponseMessage response = await client.GetAsync(
"api/v1/app-conversations/search?limit=20",
cancellationToken);
response.EnsureSuccessStatusCode();
The provider owns its cached client. Disposing the provider removes and disposes that client. Scoped registration gives each provider instance its own cached client.
| 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
- Soenneker.Extensions.Configuration (>= 4.0.910)
- Soenneker.Utils.HttpClientCache (>= 4.0.2128)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.OpenHands.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.OpenHands.OpenApiClientUtil
Provides a configured OpenHands Cloud API client and reuses it for the lifetime of the registered service. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.139 | 44 | 10/15/2026 |
| 4.0.138 | 42 | 10/15/2026 |
| 4.0.137 | 42 | 10/14/2026 |
| 4.0.136 | 57 | 10/14/2026 |
| 4.0.135 | 49 | 10/14/2026 |
| 4.0.134 | 47 | 10/14/2026 |
| 4.0.128 | 75 | 10/13/2026 |
| 4.0.127 | 58 | 10/13/2026 |
| 4.0.123 | 132 | 10/12/2026 |
| 4.0.122 | 99 | 10/11/2026 |
| 4.0.121 | 83 | 10/11/2026 |
| 4.0.120 | 124 | 10/9/2026 |
| 4.0.119 | 110 | 10/1/2026 |
| 4.0.118 | 96 | 9/29/2026 |
| 4.0.117 | 90 | 9/29/2026 |
| 4.0.116 | 123 | 9/26/2026 |
| 4.0.115 | 103 | 9/25/2026 |
| 4.0.113 | 101 | 9/25/2026 |
| 4.0.112 | 102 | 9/24/2026 |
| 4.0.111 | 129 | 9/17/2026 |
Updated NuGet packages