HttpAgent 1.0.0.1
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.1
NuGet\Install-Package HttpAgent -Version 1.0.0.1
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.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HttpAgent --version 1.0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HttpAgent, 1.0.0.1"
#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.
// Install HttpAgent as a Cake Addin #addin nuget:?package=HttpAgent&version=1.0.0.1 // Install HttpAgent as a Cake Tool #tool nuget:?package=HttpAgent&version=1.0.0.1
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?> GetContent()
{
return await httpRemoteService.GetAsAsync<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. |
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.0.9 | 0 | 2/21/2025 | |
1.0.8.5 | 38 | 2/19/2025 | |
1.0.8.4 | 53 | 2/19/2025 | |
1.0.8.3 | 73 | 2/17/2025 | |
1.0.8.2 | 74 | 1/25/2025 | |
1.0.8.1 | 57 | 1/23/2025 | |
1.0.8 | 56 | 1/22/2025 | |
1.0.7.4 | 124 | 1/4/2025 | |
1.0.7.3 | 103 | 12/26/2024 | |
1.0.7.2 | 92 | 12/26/2024 | |
1.0.7.1 | 106 | 12/24/2024 | |
1.0.7 | 84 | 12/23/2024 | |
1.0.6.6 | 98 | 12/17/2024 | |
1.0.6.5 | 105 | 12/10/2024 | |
1.0.6.4 | 121 | 12/6/2024 | |
1.0.6.3 | 103 | 12/5/2024 | |
1.0.6.2 | 170 | 12/3/2024 | |
1.0.6.1 | 111 | 12/3/2024 | |
1.0.6 | 107 | 12/2/2024 | |
1.0.5.8 | 110 | 12/2/2024 | |
1.0.5.7 | 95 | 12/2/2024 | |
1.0.5.6 | 107 | 12/1/2024 | |
1.0.5.5 | 120 | 11/30/2024 | |
1.0.5.4 | 123 | 11/29/2024 | |
1.0.5.3 | 120 | 11/28/2024 | |
1.0.5.2 | 120 | 11/28/2024 | |
1.0.5.1 | 122 | 11/27/2024 | |
1.0.5 | 127 | 11/26/2024 | |
1.0.4.10 | 118 | 11/25/2024 | |
1.0.4.9 | 118 | 11/25/2024 | |
1.0.4.8 | 116 | 11/24/2024 | |
1.0.4.7 | 116 | 11/21/2024 | |
1.0.4.6 | 119 | 11/20/2024 | |
1.0.4.5 | 116 | 11/18/2024 | |
1.0.4.4 | 114 | 11/18/2024 | |
1.0.4.3 | 118 | 11/17/2024 | |
1.0.4.2 | 121 | 11/16/2024 | |
1.0.4.1 | 120 | 11/15/2024 | |
1.0.4 | 137 | 11/14/2024 | |
1.0.3.9 | 125 | 11/14/2024 | |
1.0.3.8 | 93 | 11/12/2024 | |
1.0.3.7 | 89 | 11/12/2024 | |
1.0.3.6 | 98 | 11/11/2024 | |
1.0.3.5 | 96 | 11/11/2024 | |
1.0.3.4 | 100 | 11/11/2024 | |
1.0.3.3 | 99 | 11/11/2024 | |
1.0.3.2 | 92 | 11/10/2024 | |
1.0.3.1 | 92 | 11/10/2024 | |
1.0.3 | 95 | 11/10/2024 | |
1.0.2.9 | 92 | 11/9/2024 | |
1.0.2.8 | 98 | 11/9/2024 | |
1.0.2.7 | 99 | 11/7/2024 | |
1.0.2.6 | 85 | 11/6/2024 | |
1.0.2.5 | 93 | 11/5/2024 | |
1.0.2.4 | 91 | 11/4/2024 | |
1.0.2.3 | 96 | 11/2/2024 | |
1.0.2.2 | 87 | 11/1/2024 | |
1.0.2.1 | 91 | 10/30/2024 | |
1.0.2 | 82 | 10/30/2024 | |
1.0.1.7 | 86 | 10/27/2024 | |
1.0.1.6 | 90 | 10/27/2024 | |
1.0.1.5 | 87 | 10/27/2024 | |
1.0.1.4 | 92 | 10/27/2024 | |
1.0.1.3 | 86 | 10/24/2024 | |
1.0.1.2 | 90 | 10/24/2024 | |
1.0.1.1 | 95 | 10/23/2024 | |
1.0.1 | 94 | 10/23/2024 | |
1.0.0.9 | 92 | 10/23/2024 | |
1.0.0.8 | 97 | 10/21/2024 | |
1.0.0.7 | 94 | 10/16/2024 | |
1.0.0.6 | 95 | 10/15/2024 | |
1.0.0.5 | 93 | 10/15/2024 | |
1.0.0.4 | 94 | 10/14/2024 | |
1.0.0.3 | 91 | 10/14/2024 | |
1.0.0.2 | 102 | 10/11/2024 | |
1.0.0.1 | 103 | 10/10/2024 | |
1.0.0 | 94 | 10/10/2024 |