Soenneker.Fastly.HttpClients
11.0.201
Prefix Reserved
dotnet add package Soenneker.Fastly.HttpClients --version 11.0.201
NuGet\Install-Package Soenneker.Fastly.HttpClients -Version 11.0.201
<PackageReference Include="Soenneker.Fastly.HttpClients" Version="11.0.201" />
<PackageVersion Include="Soenneker.Fastly.HttpClients" Version="11.0.201" />
<PackageReference Include="Soenneker.Fastly.HttpClients" />
paket add Soenneker.Fastly.HttpClients --version 11.0.201
#r "nuget: Soenneker.Fastly.HttpClients, 11.0.201"
#:package Soenneker.Fastly.HttpClients@11.0.201
#addin nuget:?package=Soenneker.Fastly.HttpClients&version=11.0.201
#tool nuget:?package=Soenneker.Fastly.HttpClients&version=11.0.201
Soenneker.Fastly.HttpClients
Provides a cached HttpClient configured for Fastly API requests.
Installation
dotnet add package Soenneker.Fastly.HttpClients
Configuration
{
"Fastly": {
"ApiKey": "your-api-token"
}
}
Requests use the Fastly-Key header and https://api.fastly.com/ by default. Fastly:AuthHeaderName, Fastly:AuthHeaderValueTemplate, and Fastly:ClientBaseUrl can override those values.
Registration and usage
using Soenneker.Fastly.HttpClients.Abstract;
using Soenneker.Fastly.HttpClients.Registrars;
services.AddFastlyOpenApiHttpClientAsSingleton();
public sealed class FastlyRequestSender(IFastlyOpenApiHttpClient clients)
{
public async Task<HttpResponseMessage> GetCurrentUser(CancellationToken cancellationToken)
{
HttpClient client = await clients.Get(cancellationToken);
return await client.GetAsync("current_user", cancellationToken);
}
}
Use the scoped registration only when each scope must own a separate client. Each provider instance owns its cache entry and removes that client when disposed.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Extensions.Configuration (>= 11.0.921)
- Soenneker.Utils.HttpClientCache (>= 11.0.2188)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Fastly.HttpClients:
| Package | Downloads |
|---|---|
|
Soenneker.Fastly.OpenApiClientUtil
Provides lazy, cached access to the generated Fastly API client. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.201 | 65 | 12/3/2026 |
| 11.0.200 | 86 | 12/3/2026 |
| 11.0.199 | 84 | 12/3/2026 |
| 11.0.198 | 95 | 12/3/2026 |
| 11.0.197 | 90 | 12/3/2026 |
| 11.0.196 | 82 | 12/2/2026 |
| 11.0.194 | 83 | 12/2/2026 |
| 11.0.193 | 81 | 12/2/2026 |
| 11.0.192 | 96 | 12/2/2026 |
| 11.0.191 | 100 | 12/2/2026 |
| 11.0.190 | 100 | 12/2/2026 |
| 11.0.189 | 105 | 12/1/2026 |
| 11.0.188 | 101 | 12/1/2026 |
| 11.0.187 | 99 | 12/1/2026 |
| 11.0.186 | 103 | 12/1/2026 |
| 11.0.185 | 102 | 12/1/2026 |
| 11.0.184 | 108 | 11/30/2026 |
| 11.0.183 | 130 | 11/30/2026 |
| 11.0.182 | 113 | 11/30/2026 |
| 11.0.181 | 97 | 11/29/2026 |
Updated Multiple NuGet packages