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

Updated Multiple NuGet packages