TouchSocket.Http
4.0.7
Prefix Reserved
dotnet add package TouchSocket.Http --version 4.0.7
NuGet\Install-Package TouchSocket.Http -Version 4.0.7
<PackageReference Include="TouchSocket.Http" Version="4.0.7" />
<PackageVersion Include="TouchSocket.Http" Version="4.0.7" />
<PackageReference Include="TouchSocket.Http" />
paket add TouchSocket.Http --version 4.0.7
#r "nuget: TouchSocket.Http, 4.0.7"
#:package TouchSocket.Http@4.0.7
#addin nuget:?package=TouchSocket.Http&version=4.0.7
#tool nuget:?package=TouchSocket.Http&version=4.0.7
TouchSocket.Http
项目简介
TouchSocket.Http 是一个基于 Http1.1 协议的组件库,为开发者提供了丰富且强大的 Http 相关功能。它集成了 Http 服务器、客户端以及 WebSocket 组件,能够满足多种复杂场景下的网络通信需求。
功能特性
1. 数据传输功能
- 大文件处理:支持大文件的下载与上传操作,并且实现了多线程下载和断点续传功能。这意味着在处理大文件时,不仅可以提高传输效率,还能在网络中断等异常情况下恢复传输,确保数据完整性。
- 小文件上传:提供小文件 form 上传功能,方便用户通过表单形式上传小型文件。
2. WebApi 支持
- 声明与执行:允许开发者声明和执行 WebApi,简化了与 Web 服务的交互过程,提高了开发效率。
3. 客户端特性
- 基于连接的客户端:所提供的 Http 客户端是基于连接的,能够捕获连接和断开连接等消息。这使得开发者可以更好地监控客户端的状态,及时处理连接异常情况。
4. WebSocket 支持
- WebSocket 组件:集成了 WebSocket 组件,支持 WebSocket 协议,可实现实时双向通信,适用于需要实时数据交互的场景,如在线聊天、实时监控等。
支持的目标框架
- net481
- net462
- net472
- netstandard2.0
- netstandard2.1
- net6.0
- net10.0
- net8.0
使用方法
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 was computed. 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 is compatible. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- System.Net.Http (>= 4.3.4)
- TouchSocket (>= 4.0.7)
-
.NETStandard 2.0
- TouchSocket (>= 4.0.7)
-
.NETStandard 2.1
- TouchSocket (>= 4.0.7)
-
net10.0
- TouchSocket (>= 4.0.7)
-
net6.0
- TouchSocket (>= 4.0.7)
-
net8.0
- TouchSocket (>= 4.0.7)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on TouchSocket.Http:
| Package | Downloads |
|---|---|
|
TouchSocket.Dmtp
DMTP(Duplex Message Transport Protocol双工消息传输协议)是一个简单易用,便捷高效,且易于扩展的二进制数据协议。目前基于该协议,已实现的功能包括:连接验证、同步Id、Rpc(包括客户端请求服务器,服务器请求客户端、客户端请求客户端)、文件传输(包括客户端向服务器请求文件、客户端向服务器推送文件、服务器向客户端请求文件、服务器向客户端推送文件、 客户端之间请求、推送文件)、Redis等。 说明文档:https://touchsocket.net/ |
|
|
TouchSocket.WebApi
这是一个提供WebApi服务器和客户端的组件库。可以通过该组件创建WebApi服务解析器和客户端,让桌面端、Web端、移动端可以跨语言调用Rpc函数。功能支持自定义路由、Get传参、Post传参等。 说明文档:https://touchsocket.net/ |
|
|
JGSteel.ZZ.MES.Core
Package Description |
|
|
TouchSocket.Mqtt
这是一个提供Mqtt服务器和客户端的组件库。可以通过该组件创建基于Tcp、WebSocket协议的Mqtt服务器和客户端,支持Mqtt全部功能,可与Web,Android等平台无缝对接。 说明文档:https://touchsocket.net/ |
|
|
ThingsGateway.Plugin.Management
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on TouchSocket.Http:
| Repository | Stars |
|---|---|
|
MCSLTeam/MCServerLauncher-Future
Future version of MCSL, a brand new server management tool. Redefined, Versatile, Easy to use. (WPF Launcher & Daemon)
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.7 | 268 | 1/8/2026 |
| 4.0.6 | 1,792 | 1/3/2026 |
| 4.0.5 | 2,466 | 12/28/2025 |
| 4.0.4 | 3,033 | 12/21/2025 |
| 4.0.3 | 2,090 | 12/13/2025 |
| 4.0.2 | 3,554 | 12/6/2025 |
| 4.0.1 | 3,630 | 11/30/2025 |
| 4.0.0 | 2,903 | 11/23/2025 |
| 4.0.0-rc.51 | 209 | 11/22/2025 |
| 4.0.0-rc.46 | 1,551 | 11/17/2025 |
| 4.0.0-rc.15 | 1,420 | 11/1/2025 |
| 4.0.0-rc.5 | 3,974 | 10/26/2025 |
| 4.0.0-rc.1 | 1,374 | 10/22/2025 |
| 4.0.0-beta.140 | 7,855 | 10/18/2025 |
| 4.0.0-beta.120 | 6,131 | 10/12/2025 |
| 4.0.0-beta.96 | 4,322 | 10/5/2025 |
| 4.0.0-beta.80 | 2,410 | 9/28/2025 |
| 4.0.0-beta.70 | 3,005 | 9/26/2025 |
| 4.0.0-beta.57 | 7,804 | 9/21/2025 |
| 4.0.0-beta.28 | 2,007 | 9/17/2025 |
| 4.0.0-beta.27 | 4,455 | 9/11/2025 |
| 4.0.0-beta.25 | 3,764 | 9/7/2025 |
| 4.0.0-beta.13 | 1,727 | 9/4/2025 |
| 4.0.0-beta.6 | 1,232 | 9/1/2025 |
| 3.1.19 | 797 | 10/25/2025 |
| 3.1.18 | 790 | 9/27/2025 |
| 3.1.17 | 775 | 9/9/2025 |
| 3.1.16 | 846 | 8/21/2025 |
| 3.1.15 | 983 | 8/3/2025 |
| 3.1.14 | 4,631 | 7/20/2025 |
| 3.1.13 | 4,347 | 7/14/2025 |
| 3.1.12 | 2,953 | 7/8/2025 |
| 3.1.11 | 15,520 | 6/24/2025 |
| 3.1.10 | 2,746 | 6/23/2025 |
| 3.1.9 | 1,676 | 6/22/2025 |
| 3.1.8 | 7,286 | 6/15/2025 |
| 3.1.7 | 10,774 | 6/8/2025 |
| 3.1.6 | 5,108 | 6/2/2025 |
| 3.1.5 | 11,031 | 5/24/2025 |
| 3.1.4 | 5,023 | 5/20/2025 |
| 3.1.3 | 3,358 | 5/18/2025 |
| 3.1.2 | 5,057 | 5/11/2025 |
| 3.1.1 | 4,656 | 4/29/2025 |
| 3.1.0 | 4,100 | 4/26/2025 |
| 3.0.26 | 2,999 | 4/20/2025 |
| 3.0.25 | 4,004 | 4/12/2025 |
| 3.0.24 | 5,020 | 4/7/2025 |
| 3.0.23 | 1,845 | 4/6/2025 |
| 3.0.20 | 6,750 | 3/30/2025 |
| 3.0.19 | 9,632 | 3/23/2025 |
| 3.0.18 | 7,189 | 3/16/2025 |
| 3.0.17 | 3,352 | 3/12/2025 |
| 3.0.16 | 3,293 | 3/9/2025 |
| 3.0.15 | 8,995 | 3/2/2025 |
| 3.0.14 | 11,154 | 2/15/2025 |
| 3.0.13 | 8,026 | 1/27/2025 |
| 3.0.12 | 7,246 | 1/19/2025 |
| 3.0.11 | 717 | 1/12/2025 |
| 3.0.10 | 1,411 | 1/5/2025 |
| 3.0.9 | 3,082 | 12/22/2024 |
| 3.0.8 | 1,878 | 12/15/2024 |
| 3.0.7 | 1,692 | 12/8/2024 |
| 3.0.6 | 1,397 | 12/1/2024 |
| 3.0.4 | 1,294 | 11/24/2024 |
| 3.0.3 | 1,138 | 11/17/2024 |
| 3.0.1 | 749 | 11/14/2024 |
| 3.0.0 | 739 | 11/13/2024 |
| 2.1.10 | 2,633 | 10/25/2024 |
| 2.1.0 | 962 | 9/15/2024 |
| 2.1.0-alpha.23 | 148 | 6/28/2024 |
| 2.0.18 | 895 | 9/10/2024 |
| 2.0.17 | 1,186 | 8/30/2024 |
| 2.0.16 | 1,077 | 8/19/2024 |
| 2.0.15 | 944 | 8/9/2024 |
| 2.0.14 | 1,825 | 7/24/2024 |
| 2.0.12 | 886 | 7/17/2024 |
| 2.0.11 | 880 | 7/12/2024 |
| 2.0.10 | 2,791 | 5/31/2024 |
| 2.0.0 | 929 | 3/9/2024 |
| 1.4.5 | 585 | 7/20/2023 |