Czlovek.HttpCommunication
3.0.0-beta.9
See the version list below for details.
dotnet add package Czlovek.HttpCommunication --version 3.0.0-beta.9
NuGet\Install-Package Czlovek.HttpCommunication -Version 3.0.0-beta.9
<PackageReference Include="Czlovek.HttpCommunication" Version="3.0.0-beta.9" />
<PackageVersion Include="Czlovek.HttpCommunication" Version="3.0.0-beta.9" />
<PackageReference Include="Czlovek.HttpCommunication" />
paket add Czlovek.HttpCommunication --version 3.0.0-beta.9
#r "nuget: Czlovek.HttpCommunication, 3.0.0-beta.9"
#:package Czlovek.HttpCommunication@3.0.0-beta.9
#addin nuget:?package=Czlovek.HttpCommunication&version=3.0.0-beta.9&prerelease
#tool nuget:?package=Czlovek.HttpCommunication&version=3.0.0-beta.9&prerelease
HTTP Communication
Correlation-ID handling for ASP.NET Core, random user agents and a safe file download helper.
Correlation ID
builder.Services.AddCorrelationId();
app.UseCorrelationId(); // early in the pipeline
Every request gets a CorrelationId header: an incoming valid GUID is kept, otherwise a new one is generated. The ID is visible downstream, echoed in the response and added to the logging scope. /health and /alive are skipped.
Guid? id = httpContext.GetCorrelationId();
Guid? id = httpContextAccessor.GetCorrelationId();
User agents
var any = Utils.RandomUserAgent;
var desktop = Utils.RandomDesktopUserAgent;
var mobile = Utils.RandomMobileUserAgent;
Download
bool ok = await Utils.DownloadAsync(httpClient, new Uri("https://example.com/data.zip"), "data.zip", logger, ct);
The body is streamed to disk. A non-success status code returns false and leaves an existing file untouched; a partially written file is deleted.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Czlovek.Randomness (>= 3.0.0-beta.9)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Czlovek.HttpCommunication:
| Package | Downloads |
|---|---|
|
Czlovek.RabbitMq
RabbitMQ client with connection/channel pooling, consumers and configuration-driven topology. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-beta.10 | 50 | 11/22/2026 |
| 3.0.0-beta.9 | 51 | 11/22/2026 |
| 3.0.0-beta.8 | 59 | 11/21/2026 |
| 3.0.0-beta.6 | 86 | 9/29/2026 |
| 3.0.0-beta.5 | 89 | 9/27/2026 |
| 3.0.0-beta.4 | 66 | 9/27/2026 |
| 3.0.0-beta.3 | 67 | 9/27/2026 |
| 3.0.0-beta.2 | 72 | 9/27/2026 |
| 3.0.0-beta.1 | 94 | 7/19/2026 |
| 2.1.0-beta.85 | 95 | 6/16/2026 |
| 2.1.0-beta.84 | 83 | 5/7/2026 |
| 2.1.0-beta.83 | 81 | 5/7/2026 |
| 2.1.0-beta.82 | 131 | 3/20/2026 |
| 2.1.0-beta.81 | 104 | 2/21/2026 |
| 2.1.0-beta.80 | 97 | 2/21/2026 |
| 2.1.0-beta.79 | 98 | 2/13/2026 |
| 2.1.0-beta.78 | 106 | 2/11/2026 |
| 2.1.0-beta.77 | 95 | 2/11/2026 |
| 2.1.0-beta.76 | 90 | 2/10/2026 |
| 1.0.10 | 464 | 4/11/2023 |