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
                    
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="Soenneker.OpenHands.HttpClients" Version="4.0.139" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.OpenHands.HttpClients" Version="4.0.139" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.OpenHands.HttpClients" />
                    
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 Soenneker.OpenHands.HttpClients --version 4.0.139
                    
#r "nuget: Soenneker.OpenHands.HttpClients, 4.0.139"
                    
#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 Soenneker.OpenHands.HttpClients@4.0.139
                    
#: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=Soenneker.OpenHands.HttpClients&version=4.0.139
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.OpenHands.HttpClients&version=4.0.139
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Updated NuGet packages