HttpAgent.AspNetCore 1.0.0.1

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.1
                    
NuGet\Install-Package HttpAgent.AspNetCore -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.AspNetCore" Version="1.0.0.1" />
                    
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.1" />
                    
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.1
                    
#r "nuget: HttpAgent.AspNetCore, 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.
#:package HttpAgent.AspNetCore@1.0.0.1
                    
#: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.1
                    
Install as a Cake Addin
#tool nuget:?package=HttpAgent.AspNetCore&version=1.0.0.1
                    
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?> GetContent()
    {
        return await httpRemoteService.GetAsAsync<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.3 0 1/21/2026
1.7.2 82 1/14/2026
1.7.1 82 1/8/2026
1.7.0 87 1/8/2026
1.6.9 166 12/26/2025
1.6.8 173 12/25/2025
1.6.7 181 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 294 12/7/2025
1.6.2 147 12/6/2025
1.6.1 170 12/5/2025
1.6.0 195 12/4/2025
1.5.9 202 12/4/2025
1.5.8 672 12/3/2025
1.5.7 670 12/3/2025
1.5.6 569 12/1/2025
1.5.5 583 12/1/2025
1.5.4 100 11/29/2025
1.5.3 106 11/29/2025
1.5.2 186 11/26/2025
1.5.1 175 11/26/2025
1.5.0 186 11/26/2025
1.4.0 177 11/26/2025
1.3.0 183 11/25/2025
1.2.7 185 11/25/2025
1.2.6 184 11/25/2025
1.2.5 190 11/25/2025
1.2.4 189 11/24/2025
1.2.3 425 11/18/2025
1.2.2 416 11/15/2025 1.2.2 is deprecated because it is no longer maintained and has critical bugs.
1.2.1 523 11/12/2025 1.2.1 is deprecated because it is no longer maintained and has critical bugs.
1.2.0 526 11/12/2025 1.2.0 is deprecated because it is no longer maintained and has critical bugs.
1.1.1 453 11/6/2025 1.1.1 is deprecated because it is no longer maintained and has critical bugs.
1.1.0 441 11/5/2025 1.1.0 is deprecated because it is no longer maintained and has critical bugs.
1.0.79 450 11/4/2025 1.0.79 is deprecated because it is no longer maintained and has critical bugs.
1.0.78 444 10/30/2025 1.0.78 is deprecated because it is no longer maintained and has critical bugs.
1.0.77 420 10/26/2025 1.0.77 is deprecated because it is no longer maintained and has critical bugs.
1.0.76 421 10/16/2025 1.0.76 is deprecated because it is no longer maintained and has critical bugs.
1.0.75 434 10/15/2025 1.0.75 is deprecated because it is no longer maintained and has critical bugs.
1.0.74 424 10/14/2025 1.0.74 is deprecated because it is no longer maintained and has critical bugs.
1.0.73 431 10/7/2025 1.0.73 is deprecated because it is no longer maintained and has critical bugs.
1.0.72 360 10/4/2025 1.0.72 is deprecated because it is no longer maintained and has critical bugs.
1.0.71 432 9/29/2025 1.0.71 is deprecated because it is no longer maintained and has critical bugs.
1.0.70 428 9/28/2025 1.0.70 is deprecated because it is no longer maintained and has critical bugs.
1.0.69 558 9/18/2025 1.0.69 is deprecated because it is no longer maintained and has critical bugs.
1.0.68 560 9/17/2025 1.0.68 is deprecated because it is no longer maintained and has critical bugs.
1.0.67 563 9/16/2025 1.0.67 is deprecated because it is no longer maintained and has critical bugs.
1.0.66 547 9/15/2025 1.0.66 is deprecated because it is no longer maintained and has critical bugs.
1.0.65 439 9/10/2025 1.0.65 is deprecated because it is no longer maintained and has critical bugs.
1.0.64 430 9/2/2025 1.0.64 is deprecated because it is no longer maintained and has critical bugs.
1.0.63 427 9/1/2025 1.0.63 is deprecated because it is no longer maintained and has critical bugs.
1.0.62 474 8/30/2025 1.0.62 is deprecated because it is no longer maintained and has critical bugs.
1.0.61 481 8/28/2025 1.0.61 is deprecated because it is no longer maintained and has critical bugs.
1.0.60 465 8/28/2025 1.0.60 is deprecated because it is no longer maintained and has critical bugs.
1.0.59 443 8/13/2025 1.0.59 is deprecated because it is no longer maintained and has critical bugs.
1.0.58 784 7/24/2025 1.0.58 is deprecated because it is no longer maintained and has critical bugs.
1.0.57 716 7/22/2025 1.0.57 is deprecated because it is no longer maintained and has critical bugs.
1.0.56 270 7/19/2025 1.0.56 is deprecated because it is no longer maintained and has critical bugs.
1.0.55 345 7/17/2025 1.0.55 is deprecated because it is no longer maintained and has critical bugs.
1.0.54 351 7/9/2025 1.0.54 is deprecated because it is no longer maintained and has critical bugs.
1.0.53 346 7/8/2025 1.0.53 is deprecated because it is no longer maintained and has critical bugs.
1.0.52 299 7/4/2025 1.0.52 is deprecated because it is no longer maintained and has critical bugs.
1.0.51 349 7/3/2025 1.0.51 is deprecated because it is no longer maintained and has critical bugs.
1.0.50 368 6/25/2025 1.0.50 is deprecated because it is no longer maintained and has critical bugs.
1.0.49 352 6/23/2025 1.0.49 is deprecated because it is no longer maintained and has critical bugs.
1.0.48 357 6/19/2025 1.0.48 is deprecated because it is no longer maintained and has critical bugs.
1.0.47 323 5/30/2025 1.0.47 is deprecated because it is no longer maintained and has critical bugs.
1.0.46 414 5/22/2025 1.0.46 is deprecated because it is no longer maintained and has critical bugs.
1.0.45 221 5/21/2025 1.0.45 is deprecated because it is no longer maintained and has critical bugs.
1.0.44 305 5/15/2025 1.0.44 is deprecated because it is no longer maintained and has critical bugs.
1.0.43 311 5/13/2025 1.0.43 is deprecated because it is no longer maintained and has critical bugs.
1.0.42 299 5/12/2025 1.0.42 is deprecated because it is no longer maintained and has critical bugs.
1.0.41 289 5/12/2025 1.0.41 is deprecated because it is no longer maintained and has critical bugs.
1.0.40 210 5/1/2025 1.0.40 is deprecated because it is no longer maintained and has critical bugs.
1.0.39 249 5/1/2025 1.0.39 is deprecated because it is no longer maintained and has critical bugs.
1.0.38 239 4/27/2025 1.0.38 is deprecated because it is no longer maintained and has critical bugs.
1.0.37 170 4/26/2025 1.0.37 is deprecated because it is no longer maintained and has critical bugs.
1.0.36 163 4/25/2025 1.0.36 is deprecated because it is no longer maintained and has critical bugs.
1.0.35 246 4/22/2025 1.0.35 is deprecated because it is no longer maintained and has critical bugs.
1.0.34 266 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 279 4/16/2025 1.0.32 is deprecated because it is no longer maintained and has critical bugs.
1.0.31 280 4/13/2025 1.0.31 is deprecated because it is no longer maintained and has critical bugs.
1.0.30 208 4/11/2025 1.0.30 is deprecated because it is no longer maintained and has critical bugs.
1.0.29 246 4/1/2025 1.0.29 is deprecated because it is no longer maintained and has critical bugs.
1.0.28 547 3/24/2025 1.0.28 is deprecated because it is no longer maintained and has critical bugs.
1.0.27 401 3/23/2025 1.0.27 is deprecated because it is no longer maintained and has critical bugs.
1.0.26 313 3/23/2025 1.0.26 is deprecated because it is no longer maintained and has critical bugs.
1.0.25 290 3/22/2025 1.0.25 is deprecated because it is no longer maintained and has critical bugs.
1.0.24 201 3/22/2025 1.0.24 is deprecated because it is no longer maintained and has critical bugs.
1.0.23 259 3/14/2025 1.0.23 is deprecated because it is no longer maintained and has critical bugs.
1.0.22 305 3/13/2025 1.0.22 is deprecated because it is no longer maintained and has critical bugs.
1.0.21 365 3/4/2025 1.0.21 is deprecated because it is no longer maintained and has critical bugs.
1.0.19 228 3/2/2025 1.0.19 is deprecated because it is no longer maintained and has critical bugs.
1.0.18 231 3/1/2025 1.0.18 is deprecated because it is no longer maintained and has critical bugs.
1.0.17 238 2/28/2025 1.0.17 is deprecated because it is no longer maintained and has critical bugs.
1.0.16 349 2/27/2025 1.0.16 is deprecated because it is no longer maintained and has critical bugs.
1.0.15 236 2/27/2025 1.0.15 is deprecated because it is no longer maintained and has critical bugs.
1.0.14 227 2/26/2025 1.0.14 is deprecated because it is no longer maintained and has critical bugs.
1.0.13 235 2/25/2025 1.0.13 is deprecated because it is no longer maintained and has critical bugs.
1.0.12 269 2/25/2025 1.0.12 is deprecated because it is no longer maintained and has critical bugs.
1.0.11 231 2/25/2025 1.0.11 is deprecated because it is no longer maintained and has critical bugs.
1.0.10 239 2/25/2025 1.0.10 is deprecated because it is no longer maintained and has critical bugs.
1.0.9.1 239 2/23/2025 1.0.9.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.9 263 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 248 2/19/2025 1.0.8.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.3 230 2/17/2025 1.0.8.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.2 245 1/25/2025 1.0.8.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.1 255 1/23/2025 1.0.8.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.8 261 1/22/2025 1.0.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.4 270 1/4/2025 1.0.7.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.3 259 12/26/2024 1.0.7.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.2 231 12/26/2024 1.0.7.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.1 293 12/24/2024 1.0.7.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.7 221 12/23/2024 1.0.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.6 246 12/17/2024 1.0.6.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.5 239 12/10/2024 1.0.6.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.4 262 12/6/2024 1.0.6.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.3 235 12/5/2024 1.0.6.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.2 300 12/3/2024 1.0.6.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.1 207 12/3/2024 1.0.6.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.6 200 12/2/2024 1.0.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.8 186 12/2/2024 1.0.5.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.7 152 12/2/2024 1.0.5.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.6 158 12/1/2024 1.0.5.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.5 159 11/30/2024 1.0.5.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.4 208 11/29/2024 1.0.5.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.3 190 11/28/2024 1.0.5.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.2 206 11/28/2024 1.0.5.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.1 190 11/27/2024 1.0.5.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.5 174 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 226 11/25/2024 1.0.4.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.8 180 11/24/2024 1.0.4.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.7 185 11/21/2024 1.0.4.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.6 195 11/20/2024 1.0.4.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.5 210 11/18/2024 1.0.4.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.4 211 11/18/2024 1.0.4.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.3 172 11/17/2024 1.0.4.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.2 210 11/16/2024 1.0.4.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.1 200 11/15/2024 1.0.4.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.4 198 11/14/2024 1.0.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.9 185 11/14/2024 1.0.3.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.8 210 11/12/2024 1.0.3.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.7 181 11/12/2024 1.0.3.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.6 194 11/11/2024 1.0.3.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.5 193 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 170 11/10/2024 1.0.3.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.1 178 11/10/2024 1.0.3.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.3 209 11/10/2024 1.0.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.9 188 11/9/2024 1.0.2.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.8 197 11/9/2024 1.0.2.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.7 196 11/7/2024 1.0.2.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.6 201 11/6/2024 1.0.2.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.5 218 11/5/2024 1.0.2.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.4 195 11/4/2024 1.0.2.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.3 213 11/2/2024 1.0.2.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.2 192 11/1/2024 1.0.2.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.1 192 10/30/2024 1.0.2.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.2 176 10/30/2024 1.0.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.7 169 10/27/2024 1.0.1.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.6 178 10/27/2024 1.0.1.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.5 187 10/27/2024 1.0.1.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.4 186 10/27/2024 1.0.1.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.3 179 10/24/2024 1.0.1.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.2 183 10/24/2024 1.0.1.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.1 191 10/23/2024 1.0.1.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.1 188 10/23/2024 1.0.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.9 180 10/23/2024 1.0.0.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.8 218 10/21/2024 1.0.0.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.7 186 10/16/2024 1.0.0.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.6 218 10/15/2024 1.0.0.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.5 185 10/15/2024 1.0.0.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.4 196 10/14/2024 1.0.0.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.3 181 10/14/2024 1.0.0.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.2 203 10/11/2024 1.0.0.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.1 197 10/10/2024 1.0.0.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.0 194 10/10/2024 1.0.0 is deprecated because it is no longer maintained and has critical bugs.