HttpAgent.AspNetCore 1.0.0

There is a newer version of this package available.
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.
<PackageVersion Include="HttpAgent.AspNetCore" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="HttpAgent.AspNetCore" />
                    
Project file
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.AspNetCore --version 1.0.0
                    
#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.
#:package HttpAgent.AspNetCore@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.AspNetCore&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=HttpAgent.AspNetCore&version=1.0.0
                    
Install as a Cake Tool

HttpAgent

license nuget dotNET China

HttpAgent 是一个高性能、灵活且易用的开源库,提供了全面的 HTTP 功能支持,包括文件传输、轮询、测试工具、实时通信、请求管理、Media 类型处理、MessagePack 支持等,并具有低资源消耗和高测试覆盖率的特点。

HttpAgent.drawio

特性

  • 全面的 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

快速入门

我们在主页上有不少例子,这是让您入门的第一个:

  1. 注册 HttpRemote 服务:
services.AddHttpRemote();
  1. 获取互联网数据:
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 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.

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.7.1 32 1/8/2026
1.7.0 38 1/8/2026
1.6.9 164 12/26/2025
1.6.8 172 12/25/2025
1.6.7 176 12/23/2025
1.6.6 168 12/22/2025
1.6.5 266 12/18/2025
1.6.4 262 12/18/2025
1.6.3 293 12/7/2025
1.6.2 145 12/6/2025
1.6.1 169 12/5/2025
1.6.0 191 12/4/2025
1.5.9 198 12/4/2025
1.5.8 670 12/3/2025
1.5.7 666 12/3/2025
1.5.6 566 12/1/2025
1.5.5 583 12/1/2025
1.5.4 99 11/29/2025
1.5.3 102 11/29/2025
1.5.2 184 11/26/2025
1.5.1 173 11/26/2025
1.5.0 185 11/26/2025
1.4.0 175 11/26/2025
1.3.0 181 11/25/2025
1.2.7 183 11/25/2025
1.2.6 183 11/25/2025
1.2.5 187 11/25/2025
1.2.4 185 11/24/2025
1.2.3 423 11/18/2025
1.2.2 413 11/15/2025 1.2.2 is deprecated because it is no longer maintained and has critical bugs.
1.2.1 521 11/12/2025 1.2.1 is deprecated because it is no longer maintained and has critical bugs.
1.2.0 523 11/12/2025 1.2.0 is deprecated because it is no longer maintained and has critical bugs.
1.1.1 450 11/6/2025 1.1.1 is deprecated because it is no longer maintained and has critical bugs.
1.1.0 439 11/5/2025 1.1.0 is deprecated because it is no longer maintained and has critical bugs.
1.0.79 444 11/4/2025 1.0.79 is deprecated because it is no longer maintained and has critical bugs.
1.0.78 439 10/30/2025 1.0.78 is deprecated because it is no longer maintained and has critical bugs.
1.0.77 419 10/26/2025 1.0.77 is deprecated because it is no longer maintained and has critical bugs.
1.0.76 418 10/16/2025 1.0.76 is deprecated because it is no longer maintained and has critical bugs.
1.0.75 430 10/15/2025 1.0.75 is deprecated because it is no longer maintained and has critical bugs.
1.0.74 423 10/14/2025 1.0.74 is deprecated because it is no longer maintained and has critical bugs.
1.0.73 429 10/7/2025 1.0.73 is deprecated because it is no longer maintained and has critical bugs.
1.0.72 355 10/4/2025 1.0.72 is deprecated because it is no longer maintained and has critical bugs.
1.0.71 428 9/29/2025 1.0.71 is deprecated because it is no longer maintained and has critical bugs.
1.0.70 424 9/28/2025 1.0.70 is deprecated because it is no longer maintained and has critical bugs.
1.0.69 556 9/18/2025 1.0.69 is deprecated because it is no longer maintained and has critical bugs.
1.0.68 558 9/17/2025 1.0.68 is deprecated because it is no longer maintained and has critical bugs.
1.0.67 561 9/16/2025 1.0.67 is deprecated because it is no longer maintained and has critical bugs.
1.0.66 546 9/15/2025 1.0.66 is deprecated because it is no longer maintained and has critical bugs.
1.0.65 436 9/10/2025 1.0.65 is deprecated because it is no longer maintained and has critical bugs.
1.0.64 426 9/2/2025 1.0.64 is deprecated because it is no longer maintained and has critical bugs.
1.0.63 425 9/1/2025 1.0.63 is deprecated because it is no longer maintained and has critical bugs.
1.0.62 471 8/30/2025 1.0.62 is deprecated because it is no longer maintained and has critical bugs.
1.0.61 479 8/28/2025 1.0.61 is deprecated because it is no longer maintained and has critical bugs.
1.0.60 463 8/28/2025 1.0.60 is deprecated because it is no longer maintained and has critical bugs.
1.0.59 440 8/13/2025 1.0.59 is deprecated because it is no longer maintained and has critical bugs.
1.0.58 782 7/24/2025 1.0.58 is deprecated because it is no longer maintained and has critical bugs.
1.0.57 714 7/22/2025 1.0.57 is deprecated because it is no longer maintained and has critical bugs.
1.0.56 268 7/19/2025 1.0.56 is deprecated because it is no longer maintained and has critical bugs.
1.0.55 342 7/17/2025 1.0.55 is deprecated because it is no longer maintained and has critical bugs.
1.0.54 344 7/9/2025 1.0.54 is deprecated because it is no longer maintained and has critical bugs.
1.0.53 344 7/8/2025 1.0.53 is deprecated because it is no longer maintained and has critical bugs.
1.0.52 295 7/4/2025 1.0.52 is deprecated because it is no longer maintained and has critical bugs.
1.0.51 348 7/3/2025 1.0.51 is deprecated because it is no longer maintained and has critical bugs.
1.0.50 363 6/25/2025 1.0.50 is deprecated because it is no longer maintained and has critical bugs.
1.0.49 350 6/23/2025 1.0.49 is deprecated because it is no longer maintained and has critical bugs.
1.0.48 352 6/19/2025 1.0.48 is deprecated because it is no longer maintained and has critical bugs.
1.0.47 318 5/30/2025 1.0.47 is deprecated because it is no longer maintained and has critical bugs.
1.0.46 412 5/22/2025 1.0.46 is deprecated because it is no longer maintained and has critical bugs.
1.0.45 217 5/21/2025 1.0.45 is deprecated because it is no longer maintained and has critical bugs.
1.0.44 304 5/15/2025 1.0.44 is deprecated because it is no longer maintained and has critical bugs.
1.0.43 308 5/13/2025 1.0.43 is deprecated because it is no longer maintained and has critical bugs.
1.0.42 296 5/12/2025 1.0.42 is deprecated because it is no longer maintained and has critical bugs.
1.0.41 288 5/12/2025 1.0.41 is deprecated because it is no longer maintained and has critical bugs.
1.0.40 208 5/1/2025 1.0.40 is deprecated because it is no longer maintained and has critical bugs.
1.0.39 246 5/1/2025 1.0.39 is deprecated because it is no longer maintained and has critical bugs.
1.0.38 235 4/27/2025 1.0.38 is deprecated because it is no longer maintained and has critical bugs.
1.0.37 168 4/26/2025 1.0.37 is deprecated because it is no longer maintained and has critical bugs.
1.0.36 161 4/25/2025 1.0.36 is deprecated because it is no longer maintained and has critical bugs.
1.0.35 242 4/22/2025 1.0.35 is deprecated because it is no longer maintained and has critical bugs.
1.0.34 264 4/20/2025 1.0.34 is deprecated because it is no longer maintained and has critical bugs.
1.0.33 263 4/17/2025 1.0.33 is deprecated because it is no longer maintained and has critical bugs.
1.0.32 276 4/16/2025 1.0.32 is deprecated because it is no longer maintained and has critical bugs.
1.0.31 277 4/13/2025 1.0.31 is deprecated because it is no longer maintained and has critical bugs.
1.0.30 206 4/11/2025 1.0.30 is deprecated because it is no longer maintained and has critical bugs.
1.0.29 244 4/1/2025 1.0.29 is deprecated because it is no longer maintained and has critical bugs.
1.0.28 543 3/24/2025 1.0.28 is deprecated because it is no longer maintained and has critical bugs.
1.0.27 397 3/23/2025 1.0.27 is deprecated because it is no longer maintained and has critical bugs.
1.0.26 309 3/23/2025 1.0.26 is deprecated because it is no longer maintained and has critical bugs.
1.0.25 287 3/22/2025 1.0.25 is deprecated because it is no longer maintained and has critical bugs.
1.0.24 200 3/22/2025 1.0.24 is deprecated because it is no longer maintained and has critical bugs.
1.0.23 257 3/14/2025 1.0.23 is deprecated because it is no longer maintained and has critical bugs.
1.0.22 301 3/13/2025 1.0.22 is deprecated because it is no longer maintained and has critical bugs.
1.0.21 359 3/4/2025 1.0.21 is deprecated because it is no longer maintained and has critical bugs.
1.0.19 226 3/2/2025 1.0.19 is deprecated because it is no longer maintained and has critical bugs.
1.0.18 225 3/1/2025 1.0.18 is deprecated because it is no longer maintained and has critical bugs.
1.0.17 237 2/28/2025 1.0.17 is deprecated because it is no longer maintained and has critical bugs.
1.0.16 345 2/27/2025 1.0.16 is deprecated because it is no longer maintained and has critical bugs.
1.0.15 234 2/27/2025 1.0.15 is deprecated because it is no longer maintained and has critical bugs.
1.0.14 225 2/26/2025 1.0.14 is deprecated because it is no longer maintained and has critical bugs.
1.0.13 230 2/25/2025 1.0.13 is deprecated because it is no longer maintained and has critical bugs.
1.0.12 267 2/25/2025 1.0.12 is deprecated because it is no longer maintained and has critical bugs.
1.0.11 228 2/25/2025 1.0.11 is deprecated because it is no longer maintained and has critical bugs.
1.0.10 237 2/25/2025 1.0.10 is deprecated because it is no longer maintained and has critical bugs.
1.0.9.1 238 2/23/2025 1.0.9.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.9 260 2/21/2025 1.0.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.5 227 2/19/2025 1.0.8.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.4 246 2/19/2025 1.0.8.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.3 229 2/17/2025 1.0.8.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.2 244 1/25/2025 1.0.8.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.1 251 1/23/2025 1.0.8.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.8 259 1/22/2025 1.0.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.4 269 1/4/2025 1.0.7.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.3 255 12/26/2024 1.0.7.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.2 228 12/26/2024 1.0.7.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.1 289 12/24/2024 1.0.7.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.7 220 12/23/2024 1.0.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.6 241 12/17/2024 1.0.6.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.5 237 12/10/2024 1.0.6.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.4 259 12/6/2024 1.0.6.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.3 233 12/5/2024 1.0.6.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.2 296 12/3/2024 1.0.6.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.1 205 12/3/2024 1.0.6.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.6 198 12/2/2024 1.0.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.8 185 12/2/2024 1.0.5.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.7 146 12/2/2024 1.0.5.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.6 155 12/1/2024 1.0.5.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.5 157 11/30/2024 1.0.5.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.4 207 11/29/2024 1.0.5.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.3 181 11/28/2024 1.0.5.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.2 204 11/28/2024 1.0.5.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.1 187 11/27/2024 1.0.5.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.5 172 11/26/2024 1.0.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.10 206 11/25/2024 1.0.4.10 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.9 223 11/25/2024 1.0.4.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.8 178 11/24/2024 1.0.4.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.7 180 11/21/2024 1.0.4.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.6 192 11/20/2024 1.0.4.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.5 209 11/18/2024 1.0.4.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.4 208 11/18/2024 1.0.4.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.3 170 11/17/2024 1.0.4.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.2 205 11/16/2024 1.0.4.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.1 198 11/15/2024 1.0.4.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.4 196 11/14/2024 1.0.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.9 183 11/14/2024 1.0.3.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.8 206 11/12/2024 1.0.3.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.7 180 11/12/2024 1.0.3.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.6 192 11/11/2024 1.0.3.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.5 188 11/11/2024 1.0.3.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.4 187 11/11/2024 1.0.3.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.3 194 11/11/2024 1.0.3.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.2 169 11/10/2024 1.0.3.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.1 174 11/10/2024 1.0.3.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.3 207 11/10/2024 1.0.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.9 186 11/9/2024 1.0.2.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.8 191 11/9/2024 1.0.2.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.7 193 11/7/2024 1.0.2.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.6 200 11/6/2024 1.0.2.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.5 216 11/5/2024 1.0.2.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.4 193 11/4/2024 1.0.2.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.3 210 11/2/2024 1.0.2.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.2 190 11/1/2024 1.0.2.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.1 189 10/30/2024 1.0.2.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.2 174 10/30/2024 1.0.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.7 167 10/27/2024 1.0.1.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.6 173 10/27/2024 1.0.1.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.5 186 10/27/2024 1.0.1.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.4 182 10/27/2024 1.0.1.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.3 176 10/24/2024 1.0.1.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.2 182 10/24/2024 1.0.1.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.1 187 10/23/2024 1.0.1.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.1 186 10/23/2024 1.0.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.9 179 10/23/2024 1.0.0.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.8 215 10/21/2024 1.0.0.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.7 183 10/16/2024 1.0.0.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.6 215 10/15/2024 1.0.0.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.5 183 10/15/2024 1.0.0.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.4 193 10/14/2024 1.0.0.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.3 179 10/14/2024 1.0.0.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.2 201 10/11/2024 1.0.0.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.1 194 10/10/2024 1.0.0.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.0 191 10/10/2024 1.0.0 is deprecated because it is no longer maintained and has critical bugs.