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" />
                    
Directory.Packages.props
<PackageReference Include="Crping.Http" />
                    
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 Crping.Http --version 2.1.0
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Crping.Http&version=2.1.0
                    
Install as a Cake Tool

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,解决外部无法操作已关闭流的问题
  • 重命名方法ReadResponseReadAsStringAsync

1.2.0

2022-09-02
  • ResContentOptionsReqContentOptions委托定义为属性,并提升到接口

1.1.0

2022-09-02
  • MyHttpClientExt类改为Utils,将从public改为internal
  • 提取接口IMyHttpClient

1.0.0

2022-08-18
  • 完成常用功能
Product 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.

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
2.1.0 98 1/27/2026
2.0.0 93 1/27/2026
1.7.0 454 8/13/2024
1.6.0 273 3/25/2024
1.5.1 183 1/23/2024
1.5.0 228 10/10/2023
1.4.0 372 2/21/2023
1.3.1 568 9/27/2022
1.3.0 555 9/27/2022
1.2.0 558 9/2/2022
1.1.0 538 9/2/2022
1.0.0 552 8/18/2022

HttpClient Tools