![]() |
VOOZH | about |
dotnet add package Franz.Common.Http.Client --version 2.2.7
NuGet\Install-Package Franz.Common.Http.Client -Version 2.2.7
<PackageReference Include="Franz.Common.Http.Client" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Http.Client" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Http.Client" />Project file
paket add Franz.Common.Http.Client --version 2.2.7
#r "nuget: Franz.Common.Http.Client, 2.2.7"
#:package Franz.Common.Http.Client@2.2.7
#addin nuget:?package=Franz.Common.Http.Client&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Http.Client&version=2.2.7Install as a Cake Tool
A powerful library within the Franz Framework that simplifies the creation, configuration, and management of HTTP clients in .NET applications. This package provides tools for handling HTTP requests, authentication, custom request builders, and error management, enabling consistent and efficient communication with external APIs.
HttpService for streamlined HTTP request execution.HttpClientException for managing HTTP-related errors.AuthenticationService for token-based authentication workflows.AuthorizationRequestBuilderDomainRequestBuilderHeaderPropagationRequestBuilderExceptionDelegatingHandlerRequestBuilderDelegatingHandlerHttpFileParameter and FileParameter for file uploads.ServiceCollectionExtensions to register HTTP client services easily.HttpContentParameter for building HTTP content with flexibility.-Current Version: v2.2.7
This package relies on:
Since this package is hosted privately, configure your NuGet client:
dotnet nuget add source "https://your-private-feed-url" \
--name "AzurePrivateFeed" \
--username "YourAzureUsername" \
--password "YourAzurePassword" \
--store-password-in-clear-text
Install the package:
dotnet add package Franz.Common.Http.Client
Use ServiceCollectionExtensions to register HTTP clients:
using Franz.Common.Http.Client.Extensions;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddHttpClientServices(); // Registers HTTP clients and related services
}
}
Use the HttpService for simplified HTTP interactions:
using Franz.Common.Http.Client.Files;
var httpService = serviceProvider.GetRequiredService<HttpService>();
var response = await httpService.GetAsync<MyResponse>("https://api.example.com/resource");
Create custom request configurations with request builders:
using Franz.Common.Http.Client.Delegating;
var requestBuilder = new DomainRequestBuilder("https://api.example.com")
.AddHeader("Authorization", "Bearer token")
.AddQueryParameter("key", "value");
Handle file uploads using HttpFileParameter:
using Franz.Common.Http.Client.Content;
var fileParameter = new HttpFileParameter
{
FileName = "document.pdf",
ContentType = "application/pdf",
Content = fileStream
};
await httpService.PostFileAsync("https://api.example.com/upload", fileParameter);
Integrate authentication workflows with AuthenticationService:
using Franz.Common.Http.Client.Authentication;
var authService = serviceProvider.GetRequiredService<IAuthenticationService>();
var token = await authService.GetAccessTokenAsync("my-client-id", "my-client-secret");
The Franz.Common.Http.Client package integrates seamlessly with:
Ensure these dependencies are installed to fully leverage the library's capabilities.
This package is part of a private framework. Contributions are limited to the internal development team. If you have access, follow these steps:
This library is licensed under the MIT License. See the LICENSE file for more details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 95 | 6/7/2026 |
| 2.2.6 | 97 | 6/6/2026 |
| 2.2.5 | 105 | 6/4/2026 |
| 2.2.4 | 98 | 6/3/2026 |
| 2.2.3 | 92 | 6/2/2026 |
| 2.2.2 | 98 | 6/2/2026 |
| 2.2.1 | 93 | 5/24/2026 |
| 2.1.4 | 109 | 4/27/2026 |
| 2.1.3 | 102 | 4/26/2026 |
| 2.1.2 | 98 | 4/26/2026 |
| 2.1.1 | 105 | 4/22/2026 |
| 2.0.2 | 116 | 3/30/2026 |
| 2.0.1 | 115 | 3/29/2026 |
| 1.7.8 | 117 | 3/2/2026 |
| 1.7.7 | 123 | 1/31/2026 |
| 1.7.6 | 116 | 1/22/2026 |
| 1.7.5 | 122 | 1/10/2026 |
| 1.7.4 | 120 | 12/27/2025 |
| 1.7.3 | 212 | 12/22/2025 |
| 1.7.2 | 198 | 12/21/2025 |