HttpAgent.AspNetCore
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.AspNetCore --version 1.0.0
NuGet\Install-Package HttpAgent.AspNetCore -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.AspNetCore" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HttpAgent.AspNetCore --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HttpAgent.AspNetCore, 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.
// Install HttpAgent.AspNetCore as a Cake Addin #addin nuget:?package=HttpAgent.AspNetCore&version=1.0.0 // Install HttpAgent.AspNetCore as a Cake Tool #tool nuget:?package=HttpAgent.AspNetCore&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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
NuGet packages
This package is not used by any NuGet packages.
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 | 28 | 2/19/2025 | |
1.0.8.4 | 36 | 2/19/2025 | |
1.0.8.3 | 67 | 2/17/2025 | |
1.0.8.2 | 68 | 1/25/2025 | |
1.0.8.1 | 67 | 1/23/2025 | |
1.0.8 | 67 | 1/22/2025 | |
1.0.7.4 | 114 | 1/4/2025 | |
1.0.7.3 | 83 | 12/26/2024 | |
1.0.7.2 | 82 | 12/26/2024 | |
1.0.7.1 | 92 | 12/24/2024 | |
1.0.7 | 79 | 12/23/2024 | |
1.0.6.6 | 92 | 12/17/2024 | |
1.0.6.5 | 90 | 12/10/2024 | |
1.0.6.4 | 97 | 12/6/2024 | |
1.0.6.3 | 93 | 12/5/2024 | |
1.0.6.2 | 157 | 12/3/2024 | |
1.0.6.1 | 105 | 12/3/2024 | |
1.0.6 | 100 | 12/2/2024 | |
1.0.5.8 | 91 | 12/2/2024 | |
1.0.5.7 | 82 | 12/2/2024 | |
1.0.5.6 | 95 | 12/1/2024 | |
1.0.5.5 | 97 | 11/30/2024 | |
1.0.5.4 | 107 | 11/29/2024 | |
1.0.5.3 | 110 | 11/28/2024 | |
1.0.5.2 | 110 | 11/28/2024 | |
1.0.5.1 | 110 | 11/27/2024 | |
1.0.5 | 113 | 11/26/2024 | |
1.0.4.10 | 112 | 11/25/2024 | |
1.0.4.9 | 118 | 11/25/2024 | |
1.0.4.8 | 109 | 11/24/2024 | |
1.0.4.7 | 109 | 11/21/2024 | |
1.0.4.6 | 119 | 11/20/2024 | |
1.0.4.5 | 109 | 11/18/2024 | |
1.0.4.4 | 108 | 11/18/2024 | |
1.0.4.3 | 100 | 11/17/2024 | |
1.0.4.2 | 110 | 11/16/2024 | |
1.0.4.1 | 111 | 11/15/2024 | |
1.0.4 | 108 | 11/14/2024 | |
1.0.3.9 | 107 | 11/14/2024 | |
1.0.3.8 | 116 | 11/12/2024 | |
1.0.3.7 | 114 | 11/12/2024 | |
1.0.3.6 | 126 | 11/11/2024 | |
1.0.3.5 | 125 | 11/11/2024 | |
1.0.3.4 | 119 | 11/11/2024 | |
1.0.3.3 | 123 | 11/11/2024 | |
1.0.3.2 | 113 | 11/10/2024 | |
1.0.3.1 | 115 | 11/10/2024 | |
1.0.3 | 116 | 11/10/2024 | |
1.0.2.9 | 113 | 11/9/2024 | |
1.0.2.8 | 119 | 11/9/2024 | |
1.0.2.7 | 121 | 11/7/2024 | |
1.0.2.6 | 111 | 11/6/2024 | |
1.0.2.5 | 127 | 11/5/2024 | |
1.0.2.4 | 118 | 11/4/2024 | |
1.0.2.3 | 123 | 11/2/2024 | |
1.0.2.2 | 119 | 11/1/2024 | |
1.0.2.1 | 116 | 10/30/2024 | |
1.0.2 | 108 | 10/30/2024 | |
1.0.1.7 | 109 | 10/27/2024 | |
1.0.1.6 | 113 | 10/27/2024 | |
1.0.1.5 | 111 | 10/27/2024 | |
1.0.1.4 | 109 | 10/27/2024 | |
1.0.1.3 | 106 | 10/24/2024 | |
1.0.1.2 | 115 | 10/24/2024 | |
1.0.1.1 | 117 | 10/23/2024 | |
1.0.1 | 117 | 10/23/2024 | |
1.0.0.9 | 111 | 10/23/2024 | |
1.0.0.8 | 108 | 10/21/2024 | |
1.0.0.7 | 122 | 10/16/2024 | |
1.0.0.6 | 120 | 10/15/2024 | |
1.0.0.5 | 121 | 10/15/2024 | |
1.0.0.4 | 116 | 10/14/2024 | |
1.0.0.3 | 111 | 10/14/2024 | |
1.0.0.2 | 112 | 10/11/2024 | |
1.0.0.1 | 128 | 10/10/2024 | |
1.0.0 | 122 | 10/10/2024 |