HttpAgent 1.0.0

This package has been deprecated as it is legacy and has critical bugs.
There is a newer version of this package available.
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" />
                    
Directory.Packages.props
<PackageReference Include="HttpAgent" />
                    
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 --version 1.0.0
                    
#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.
#addin nuget:?package=HttpAgent&version=1.0.0
                    
Install HttpAgent as a Cake Addin
#tool nuget:?package=HttpAgent&version=1.0.0
                    
Install HttpAgent 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.31 58 2 days ago
1.0.30 89 4 days ago
1.0.29 158 14 days ago
1.0.28 457 22 days ago
1.0.27 320 23 days ago 1.0.27 is deprecated because it is no longer maintained and has critical bugs.
1.0.26 203 23 days ago 1.0.26 is deprecated because it is no longer maintained and has critical bugs.
1.0.25 208 24 days ago 1.0.25 is deprecated because it is no longer maintained and has critical bugs.
1.0.24 125 24 days ago 1.0.24 is deprecated because it is no longer maintained and has critical bugs.
1.0.23 199 a month ago 1.0.23 is deprecated because it is no longer maintained and has critical bugs.
1.0.22 203 a month ago 1.0.22 is deprecated because it is no longer maintained and has critical bugs.
1.0.21 286 a month ago 1.0.21 is deprecated because it is no longer maintained and has critical bugs.
1.0.19 166 a month ago 1.0.19 is deprecated because it is no longer maintained and has critical bugs.
1.0.18 155 a month ago 1.0.18 is deprecated because it is no longer maintained and has critical bugs.
1.0.17 160 2 months ago 1.0.17 is deprecated because it is no longer maintained and has critical bugs.
1.0.16 195 2 months ago 1.0.16 is deprecated because it is no longer maintained and has critical bugs.
1.0.15 170 2 months ago 1.0.15 is deprecated because it is no longer maintained and has critical bugs.
1.0.14 162 2 months ago 1.0.14 is deprecated because it is no longer maintained and has critical bugs.
1.0.13 164 2 months ago 1.0.13 is deprecated because it is no longer maintained and has critical bugs.
1.0.12 163 2 months ago 1.0.12 is deprecated because it is no longer maintained and has critical bugs.
1.0.11 156 2 months ago 1.0.11 is deprecated because it is no longer maintained and has critical bugs.
1.0.10 163 2 months ago 1.0.10 is deprecated because it is no longer maintained and has critical bugs.
1.0.9.1 168 2 months ago 1.0.9.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.9 179 2 months ago 1.0.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.5 163 2 months ago 1.0.8.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.4 163 2 months ago 1.0.8.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.3 168 2 months ago 1.0.8.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.2 190 3 months ago 1.0.8.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.8.1 162 3 months ago 1.0.8.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.8 160 3 months ago 1.0.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.4 202 3 months ago 1.0.7.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.3 177 4 months ago 1.0.7.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.2 166 4 months ago 1.0.7.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.7.1 192 4 months ago 1.0.7.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.7 161 4 months ago 1.0.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.6 178 4 months ago 1.0.6.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.5 182 4 months ago 1.0.6.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.4 193 4 months ago 1.0.6.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.3 172 4 months ago 1.0.6.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.2 243 4 months ago 1.0.6.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.6.1 115 4 months ago 1.0.6.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.6 126 4 months ago 1.0.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.8 113 4 months ago 1.0.5.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.7 98 4 months ago 1.0.5.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.6 111 4 months ago 1.0.5.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.5 123 5 months ago 1.0.5.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.4 127 5 months ago 1.0.5.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.3 123 5 months ago 1.0.5.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.2 124 5 months ago 1.0.5.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.5.1 126 5 months ago 1.0.5.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.5 130 5 months ago 1.0.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.10 122 5 months ago 1.0.4.10 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.9 124 5 months ago 1.0.4.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.8 121 5 months ago 1.0.4.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.7 121 5 months ago 1.0.4.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.6 124 5 months ago 1.0.4.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.5 120 5 months ago 1.0.4.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.4 118 5 months ago 1.0.4.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.3 121 5 months ago 1.0.4.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.2 124 5 months ago 1.0.4.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.4.1 122 5 months ago 1.0.4.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.4 139 5 months ago 1.0.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.9 127 5 months ago 1.0.3.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.8 95 5 months ago 1.0.3.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.7 91 5 months ago 1.0.3.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.6 100 5 months ago 1.0.3.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.5 98 5 months ago 1.0.3.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.4 103 5 months ago 1.0.3.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.3 101 5 months ago 1.0.3.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.2 94 5 months ago 1.0.3.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.3.1 95 5 months ago 1.0.3.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.3 97 5 months ago 1.0.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.9 95 5 months ago 1.0.2.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.8 100 5 months ago 1.0.2.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.7 102 5 months ago 1.0.2.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.6 88 5 months ago 1.0.2.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.5 102 5 months ago 1.0.2.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.4 93 5 months ago 1.0.2.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.3 99 5 months ago 1.0.2.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.2 93 5 months ago 1.0.2.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.2.1 96 6 months ago 1.0.2.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.2 86 6 months ago 1.0.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.7 89 6 months ago 1.0.1.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.6 93 6 months ago 1.0.1.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.5 90 6 months ago 1.0.1.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.4 96 6 months ago 1.0.1.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.3 88 6 months ago 1.0.1.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.2 92 6 months ago 1.0.1.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.1.1 97 6 months ago 1.0.1.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.1 96 6 months ago 1.0.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.9 93 6 months ago 1.0.0.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.8 100 6 months ago 1.0.0.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.7 96 6 months ago 1.0.0.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.6 97 6 months ago 1.0.0.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.5 94 6 months ago 1.0.0.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.4 95 6 months ago 1.0.0.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.3 93 6 months ago 1.0.0.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.2 103 6 months ago 1.0.0.2 is deprecated because it is no longer maintained and has critical bugs.
1.0.0.1 104 6 months ago 1.0.0.1 is deprecated because it is no longer maintained and has critical bugs.
1.0.0 97 6 months ago 1.0.0 is deprecated because it is no longer maintained and has critical bugs.