fbognini.Sdk
4.0.0
dotnet add package fbognini.Sdk --version 4.0.0
NuGet\Install-Package fbognini.Sdk -Version 4.0.0
<PackageReference Include="fbognini.Sdk" Version="4.0.0" />
<PackageVersion Include="fbognini.Sdk" Version="4.0.0" />
<PackageReference Include="fbognini.Sdk" />
paket add fbognini.Sdk --version 4.0.0
#r "nuget: fbognini.Sdk, 4.0.0"
#:package fbognini.Sdk@4.0.0
#addin nuget:?package=fbognini.Sdk&version=4.0.0
#tool nuget:?package=fbognini.Sdk&version=4.0.0
fbognini.SDK
A rich implementation for HttpClient with logging, authentication and exception throwing.
Logging
AddLogging() logs every call with its full url, custom headers and both bodies. When those can carry secrets or personal data, choose what is logged with LoggingHandlerOptions:
services.AddHttpClient<IMyApiService, MyApiService>()
.AddLogging(new LoggingHandlerOptions(HttpLogDetail.FailureBody, HttpLogCalls.FailuresOnly));
HttpLogDetail |
Logged |
|---|---|
Full (default) |
Full url with query string, custom headers, request and response bodies |
FailureBody |
As Metadata, plus the response body of a non-success call |
Metadata |
Method, path without query string, status code, elapsed time |
HttpLogCalls |
Logged |
|---|---|
All (default) |
Every call, before and after |
FailuresOnly |
Non-success responses, exceptions and timeouts |
A handler built by hand takes the same options: new LoggingHandler(logger, options).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- Microsoft.Extensions.Http.Polly (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
- Polly (>= 7.2.4)
-
net8.0
- Microsoft.Extensions.Http.Polly (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Polly (>= 7.2.4)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on fbognini.Sdk:
| Package | Downloads |
|---|---|
|
ExpediaRapidApi.Sdk
An unofficial Expedia Rapid API .NET SDK, supporting .NET 8.0+ |
|
|
Savvy.Sdk
Package Description |
|
|
fbognini.Sdk.AspNetCore
ASP.NET Core integration for fbognini.Sdk: an authentication policy that resolves the current user from the HttpContext. |
|
|
BrainleadApi.Sdk
An unofficial Brainlead API .NET SDK, supporting .NET 8.0+ |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0 | 111 | 11/14/2026 |
| 3.4.0 | 396 | 6/19/2026 |
| 3.3.2 | 153 | 6/19/2026 |
| 3.3.1 | 152 | 6/10/2026 |
| 3.3.0 | 178 | 6/4/2026 |
| 3.2.0 | 181 | 2/20/2026 |
| 3.1.2 | 162 | 2/3/2026 |
| 3.1.1 | 618 | 10/30/2025 |
| 3.1.0 | 275 | 10/15/2025 |
| 3.0.2 | 344 | 10/12/2025 |
| 3.0.1 | 363 | 5/16/2025 |
| 3.0.0 | 1,425 | 10/10/2024 |
| 2.5.3 | 321 | 10/10/2024 |
| 2.5.2 | 348 | 10/4/2024 |
| 2.5.1 | 393 | 7/13/2024 |
| 2.5.0 | 299 | 7/10/2024 |
| 2.4.5 | 290 | 7/9/2024 |
| 2.4.4 | 446 | 6/19/2024 |
| 2.4.2 | 628 | 9/19/2023 |
| 2.4.0 | 309 | 8/16/2023 |