Crping.Http
2.1.0
dotnet add package Crping.Http --version 2.1.0
NuGet\Install-Package Crping.Http -Version 2.1.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="Crping.Http" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Crping.Http" Version="2.1.0" />
<PackageReference Include="Crping.Http" />
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 Crping.Http --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Crping.Http, 2.1.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 Crping.Http@2.1.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=Crping.Http&version=2.1.0
#tool nuget:?package=Crping.Http&version=2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Crping.Http
版本更新说明
2.1.0
2026年1月27日 星期二
- 新增属性
Logger
2.0.0
2026年1月27日 星期二
- 升级 .NET 版本至 .NET10.0
- 新增 PUT 方法基础结构(PutAsync, PutContentAsync, PutStringAsync, PutFormAsync, PutJsonAsync)
- 新增 DELETE 方法基础结构(DeleteAsync, DeleteStringAsync)
- 在 IMyHttpClient 接口中添加相应方法声明
- 添加 PUT 和 DELETE 方法的测试用例
- 优化代码结构,提升代码可读性和维护性
- 添加对
CancellationToken的支持,允许在异步操作中取消请求 - 添加日志记录
ILogger
1.7.0
2024年8月13日 星期二
Post相关方法添加ContentLength补充逻辑- 整理代码风格
1.6.0
2024年3月25日 星期一
- 新增属性
FullUrl
1.5.1
2024年1月23日 星期二
- 解决清理
UrlParams后,无法清除URL中参数的问题
1.5.0
2023-10-10
- 新增方法
PostStringAsync
1.4.0
2023-02-21
- 修复POST时调用
ReqContentOptions?.Invoke(PostContent);的遗漏与统一的问题 PostForStringAsync改为PostContentAsync
1.3.1
2022-09-27
GetStreamAsync使用MemoryStream做为返回值,内部HttpResponseMessage使用using
1.3.0
2022-09-27
- 删除所有返回
Stream方法的using,解决外部无法操作已关闭流的问题 - 重命名方法
ReadResponse为ReadAsStringAsync
1.2.0
2022-09-02
- 将
ResContentOptions,ReqContentOptions委托定义为属性,并提升到接口
1.1.0
2022-09-02
- 将
MyHttpClientExt类改为Utils,将从public改为internal - 提取接口
IMyHttpClient
1.0.0
2022-08-18
- 完成常用功能
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Crping.Logger (>= 0.3.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
HttpClient Tools