HttpAgent 1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package HttpAgent --version 1.0.0
NuGet\Install-Package HttpAgent -Version 1.0.0
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="HttpAgent" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HttpAgent" Version="1.0.0" />
<PackageReference Include="HttpAgent" />
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 HttpAgent --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HttpAgent, 1.0.0"
#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 HttpAgent@1.0.0
#: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=HttpAgent&version=1.0.0
#tool nuget:?package=HttpAgent&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HttpAgent
HttpAgent 是一个高性能、灵活且易用的开源库,提供了全面的 HTTP 功能支持,包括文件传输、轮询、测试工具、实时通信、请求管理、Media 类型处理、MessagePack 支持等,并具有低资源消耗和高测试覆盖率的特点。
特性
- 全面的
HTTP方法支持:涵盖GET,POST,PUT,DELETE,PATCH,HEAD,TRACE, 和OPTIONS方法。 - 文件传输功能:支持文件上传和下载,并提供实时传输进度监控。
- 轮询机制:支持标准轮询与长轮询,并允许自定义轮询间隔。
- 测试工具集:具备压力测试、性能测试及模拟测试能力,并能生成详细的测试报告;支持配置请求数量、并发数及测试迭代次数。
HTTP代理与微服务集成:支持HTTP代理和请求转发,适用于微服务架构中的集成开发。- 实时通信能力:通过
Server-Sent Events (SSE)实现实时数据推送,并兼容WebSocket协议。 - 请求管理和日志审计:内置请求拦截机制及
HTTP请求日志审计功能。 - 媒体类型处理:预设主流
MediaType的处理机制,并开放自定义处理接口。 MessagePack支持:集成MessagePack序列化与反序列化功能,提高数据交换效率。- 响应转换灵活性:提供常用的
HTTP响应转换器,并支持自定义转换逻辑。 - 高性能与资源管理:采用内存优化技术和连接池管理,确保低资源消耗与高性能表现。
- 架构设计:架构设计灵活,易于使用与扩展。
- 跨平台无依赖:支持跨平台运行,无需外部依赖。
- 高质量代码保障:遵循高标准编码规范,拥有高达
98%的单元测试与集成测试覆盖率。 .NET 8+兼容性:可在.NET 8及更高版本环境中部署使用。
这样表述更加紧凑,同时强调了各项特性的专业性和实用性。
安装
dotnet add package HttpAgent
快速入门
我们在主页上有不少例子,这是让您入门的第一个:
- 注册
HttpRemote服务:
services.AddHttpRemote();
- 获取互联网数据:
public class YourService(IHttpRemoteService httpRemoteService)
{
public async Task<string?> GetHtml()
{
return await httpRemoteService.GetAsync<string>("https://furion.net/");
}
}
文档
您可以在主页找到 HttpAgent 文档。
贡献
该存储库的主要目的是继续发展 HttpAgent 核心,使其更快、更易于使用。HttpAgent 的开发在 Gitee 上公开进行,我们感谢社区贡献错误修复和改进。
许可证
HttpAgent 采用 MIT 开源许可证。
| 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 is compatible. 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.Http (>= 8.0.0)
- Microsoft.Net.Http.Headers (>= 8.0.0)
-
net9.0
- Microsoft.Extensions.Http (>= 9.0.0-rc.2.24473.5)
- Microsoft.Net.Http.Headers (>= 9.0.0-rc.2.24474.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on HttpAgent:
| Package | Downloads |
|---|---|
|
HttpAgent.AspNetCore
Furion 框架 HTTP 远程请求模块。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.6.5 | 71 | 12/18/2025 | |
| 1.6.4 | 85 | 12/18/2025 | |
| 1.6.3 | 297 | 12/7/2025 | |
| 1.6.2 | 147 | 12/6/2025 | |
| 1.6.1 | 175 | 12/5/2025 | |
| 1.6.0 | 196 | 12/4/2025 | |
| 1.5.9 | 198 | 12/4/2025 | |
| 1.5.8 | 669 | 12/3/2025 | |
| 1.5.7 | 665 | 12/3/2025 | |
| 1.5.6 | 571 | 12/1/2025 | |
| 1.5.5 | 587 | 12/1/2025 | |
| 1.5.4 | 107 | 11/29/2025 | |
| 1.5.3 | 113 | 11/29/2025 | |
| 1.5.2 | 203 | 11/26/2025 | |
| 1.5.1 | 186 | 11/26/2025 | |
| 1.5.0 | 182 | 11/26/2025 | |
| 1.4.0 | 187 | 11/26/2025 | |
| 1.3.0 | 189 | 11/25/2025 | |
| 1.2.7 | 191 | 11/25/2025 | |
| 1.2.6 | 196 | 11/25/2025 | |
| 1.2.5 | 186 | 11/25/2025 | |
| 1.2.4 | 186 | 11/24/2025 | |
| 1.2.3 | 399 | 11/18/2025 | |
| 1.2.2 | 417 | 11/15/2025 | |
| 1.2.1 | 533 | 11/12/2025 | |
| 1.2.0 | 524 | 11/12/2025 | |
| 1.1.1 | 406 | 11/6/2025 | |
| 1.1.0 | 404 | 11/5/2025 | |
| 1.0.79 | 401 | 11/4/2025 | |
| 1.0.78 | 407 | 10/30/2025 | |
| 1.0.77 | 391 | 10/26/2025 | |
| 1.0.76 | 390 | 10/16/2025 | |
| 1.0.75 | 391 | 10/15/2025 | |
| 1.0.74 | 386 | 10/14/2025 | |
| 1.0.73 | 404 | 10/7/2025 | |
| 1.0.72 | 326 | 10/4/2025 | |
| 1.0.71 | 395 | 9/29/2025 | |
| 1.0.70 | 385 | 9/28/2025 | |
| 1.0.69 | 546 | 9/18/2025 | |
| 1.0.68 | 525 | 9/17/2025 | |
| 1.0.67 | 532 | 9/16/2025 | |
| 1.0.66 | 512 | 9/15/2025 | |
| 1.0.65 | 417 | 9/10/2025 | |
| 1.0.64 | 412 | 9/2/2025 | |
| 1.0.63 | 397 | 9/1/2025 | |
| 1.0.62 | 432 | 8/30/2025 | |
| 1.0.61 | 436 | 8/28/2025 | |
| 1.0.60 | 435 | 8/28/2025 | |
| 1.0.59 | 429 | 8/13/2025 | |
| 1.0.58 | 776 | 7/24/2025 | |
| 1.0.57 | 694 | 7/22/2025 | |
| 1.0.56 | 235 | 7/19/2025 | |
| 1.0.55 | 311 | 7/17/2025 | |
| 1.0.54 | 326 | 7/9/2025 | |
| 1.0.53 | 318 | 7/8/2025 | |
| 1.0.52 | 267 | 7/4/2025 | |
| 1.0.51 | 323 | 7/3/2025 | |
| 1.0.50 | 358 | 6/25/2025 | |
| 1.0.49 | 369 | 6/23/2025 | |
| 1.0.48 | 389 | 6/19/2025 | |
| 1.0.47 | 336 | 5/30/2025 | |
| 1.0.46 | 421 | 5/22/2025 | |
| 1.0.45 | 220 | 5/21/2025 | |
| 1.0.44 | 346 | 5/15/2025 | |
| 1.0.43 | 336 | 5/13/2025 | |
| 1.0.42 | 300 | 5/12/2025 | |
| 1.0.41 | 292 | 5/12/2025 | |
| 1.0.40 | 234 | 5/1/2025 | |
| 1.0.39 | 231 | 5/1/2025 | |
| 1.0.38 | 236 | 4/27/2025 | |
| 1.0.37 | 171 | 4/26/2025 | |
| 1.0.36 | 162 | 4/25/2025 | |
| 1.0.35 | 262 | 4/22/2025 | |
| 1.0.34 | 265 | 4/20/2025 | |
| 1.0.33 | 275 | 4/17/2025 | |
| 1.0.32 | 281 | 4/16/2025 | |
| 1.0.31 | 294 | 4/13/2025 | |
| 1.0.30 | 221 | 4/11/2025 | |
| 1.0.29 | 268 | 4/1/2025 | |
| 1.0.28 | 551 | 3/24/2025 | |
| 1.0.27 | 399 | 3/23/2025 | |
| 1.0.26 | 280 | 3/23/2025 | |
| 1.0.25 | 287 | 3/22/2025 | |
| 1.0.24 | 210 | 3/22/2025 | |
| 1.0.23 | 276 | 3/14/2025 | |
| 1.0.22 | 287 | 3/13/2025 | |
| 1.0.21 | 363 | 3/4/2025 | |
| 1.0.19 | 237 | 3/2/2025 | |
| 1.0.18 | 228 | 3/1/2025 | |
| 1.0.17 | 232 | 2/28/2025 | |
| 1.0.16 | 320 | 2/27/2025 | |
| 1.0.15 | 242 | 2/27/2025 | |
| 1.0.14 | 235 | 2/26/2025 | |
| 1.0.13 | 251 | 2/25/2025 | |
| 1.0.12 | 233 | 2/25/2025 | |
| 1.0.11 | 227 | 2/25/2025 | |
| 1.0.10 | 237 | 2/25/2025 | |
| 1.0.9.1 | 240 | 2/23/2025 | |
| 1.0.9 | 269 | 2/21/2025 | |
| 1.0.8.5 | 235 | 2/19/2025 | |
| 1.0.8.4 | 236 | 2/19/2025 | |
| 1.0.8.3 | 242 | 2/17/2025 | |
| 1.0.8.2 | 258 | 1/25/2025 | |
| 1.0.8.1 | 229 | 1/23/2025 | |
| 1.0.8 | 243 | 1/22/2025 | |
| 1.0.7.4 | 274 | 1/4/2025 | |
| 1.0.7.3 | 253 | 12/26/2024 | |
| 1.0.7.2 | 249 | 12/26/2024 | |
| 1.0.7.1 | 281 | 12/24/2024 | |
| 1.0.7 | 237 | 12/23/2024 | |
| 1.0.6.6 | 249 | 12/17/2024 | |
| 1.0.6.5 | 268 | 12/10/2024 | |
| 1.0.6.4 | 270 | 12/6/2024 | |
| 1.0.6.3 | 242 | 12/5/2024 | |
| 1.0.6.2 | 314 | 12/3/2024 | |
| 1.0.6.1 | 186 | 12/3/2024 | |
| 1.0.6 | 206 | 12/2/2024 | |
| 1.0.5.8 | 179 | 12/2/2024 | |
| 1.0.5.7 | 171 | 12/2/2024 | |
| 1.0.5.6 | 175 | 12/1/2024 | |
| 1.0.5.5 | 193 | 11/30/2024 | |
| 1.0.5.4 | 196 | 11/29/2024 | |
| 1.0.5.3 | 197 | 11/28/2024 | |
| 1.0.5.2 | 195 | 11/28/2024 | |
| 1.0.5.1 | 200 | 11/27/2024 | |
| 1.0.5 | 197 | 11/26/2024 | |
| 1.0.4.10 | 206 | 11/25/2024 | |
| 1.0.4.9 | 193 | 11/25/2024 | |
| 1.0.4.8 | 191 | 11/24/2024 | |
| 1.0.4.7 | 193 | 11/21/2024 | |
| 1.0.4.6 | 194 | 11/20/2024 | |
| 1.0.4.5 | 186 | 11/18/2024 | |
| 1.0.4.4 | 193 | 11/18/2024 | |
| 1.0.4.3 | 185 | 11/17/2024 | |
| 1.0.4.2 | 193 | 11/16/2024 | |
| 1.0.4.1 | 191 | 11/15/2024 | |
| 1.0.4 | 203 | 11/14/2024 | |
| 1.0.3.9 | 196 | 11/14/2024 | |
| 1.0.3.8 | 142 | 11/12/2024 | |
| 1.0.3.7 | 133 | 11/12/2024 | |
| 1.0.3.6 | 143 | 11/11/2024 | |
| 1.0.3.5 | 151 | 11/11/2024 | |
| 1.0.3.4 | 151 | 11/11/2024 | |
| 1.0.3.3 | 150 | 11/11/2024 | |
| 1.0.3.2 | 135 | 11/10/2024 | |
| 1.0.3.1 | 139 | 11/10/2024 | |
| 1.0.3 | 141 | 11/10/2024 | |
| 1.0.2.9 | 140 | 11/9/2024 | |
| 1.0.2.8 | 153 | 11/9/2024 | |
| 1.0.2.7 | 156 | 11/7/2024 | |
| 1.0.2.6 | 136 | 11/6/2024 | |
| 1.0.2.5 | 150 | 11/5/2024 | |
| 1.0.2.4 | 139 | 11/4/2024 | |
| 1.0.2.3 | 146 | 11/2/2024 | |
| 1.0.2.2 | 145 | 11/1/2024 | |
| 1.0.2.1 | 140 | 10/30/2024 | |
| 1.0.2 | 136 | 10/30/2024 | |
| 1.0.1.7 | 129 | 10/27/2024 | |
| 1.0.1.6 | 139 | 10/27/2024 | |
| 1.0.1.5 | 144 | 10/27/2024 | |
| 1.0.1.4 | 142 | 10/27/2024 | |
| 1.0.1.3 | 132 | 10/24/2024 | |
| 1.0.1.2 | 147 | 10/24/2024 | |
| 1.0.1.1 | 141 | 10/23/2024 | |
| 1.0.1 | 142 | 10/23/2024 | |
| 1.0.0.9 | 141 | 10/23/2024 | |
| 1.0.0.8 | 146 | 10/21/2024 | |
| 1.0.0.7 | 141 | 10/16/2024 | |
| 1.0.0.6 | 138 | 10/15/2024 | |
| 1.0.0.5 | 146 | 10/15/2024 | |
| 1.0.0.4 | 142 | 10/14/2024 | |
| 1.0.0.3 | 143 | 10/14/2024 | |
| 1.0.0.2 | 152 | 10/11/2024 | |
| 1.0.0.1 | 146 | 10/10/2024 | |
| 1.0.0 | 147 | 10/10/2024 |