Microsoft.AspNetCore.Http 1.0.2
ASP.NET Core default HTTP feature implementations.
Showing the top 20 packages that depend on Microsoft.AspNetCore.Http.
| Packages | Downloads |
|---|---|
|
Masuit.Tools.Core
包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,html处理,验证码、NoSql等常用封装。
示例代码:
1.检验字符串是否是Email
bool isEmail="1170397736@qq.com".MatchEmail();
2.获取线程内唯一对象
CallContext<T>.GetData("db");
3.获取当前请求上下文
var context=HttpContext2.Current;
4.获取IP详细地理信息
var address="114.114.114.114".GetPhysicsAddress();
5.大文件操作
FileStream fs = new FileStream(@"D:\boot.vmdk", FileMode.OpenOrCreate, FileAccess.ReadWrite);
{
//fs.CopyToFile(@"D:\1.bak");//同步复制大文件
fs.CopyToFileAsync(@"D:\1.bak");//异步复制大文件
string md5 = fs.GetFileMD5Async().Result;//异步获取文件的MD5
}
6.html的防XSS处理:
string html = @"<link href="/Content/font-awesome/css" rel="stylesheet" />
<!--[if IE 7]>
<link href='/Content/font-awesome-ie7.min.css' rel='stylesheet'/>
<![endif]-->
<script src="/Scripts/modernizr"></script>
<div id="searchBox" role="search">
<form action="/packages" method="get">
<span class="user-actions"><a href="/users/account/LogOff">退出</a></span>
<input name="q" id="searchBoxInput" />
<input id="searchBoxSubmit" type="submit" value="Submit" />
</form>
</div>";
string s = html.HtmlSantinizerStandard();//清理后:<div><span><a href="/users/account/LogOff">退出</a></span></div>
|
3 |
|
Microsoft.AspNetCore.Owin
ASP.NET Core component for running OWIN middleware in an ASP.NET Core application, and to run ASP.NET Core middleware in an OWIN application.
|
2 |
|
Masuit.Tools.Core
包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,html处理,验证码、NoSql等常用封装。
示例代码:
1.检验字符串是否是Email
bool isEmail="1170397736@qq.com".MatchEmail();
2.获取线程内唯一对象
CallContext<T>.GetData("db");
3.获取当前请求上下文
var context=HttpContext2.Current;
4.获取IP详细地理信息
var address="114.114.114.114".GetPhysicsAddress();
5.大文件操作
FileStream fs = new FileStream(@"D:\boot.vmdk", FileMode.OpenOrCreate, FileAccess.ReadWrite);
{
//fs.CopyToFile(@"D:\1.bak");//同步复制大文件
fs.CopyToFileAsync(@"D:\1.bak");//异步复制大文件
string md5 = fs.GetFileMD5Async().Result;//异步获取文件的MD5
}
6.html的防XSS处理:
string html = @"<link href="/Content/font-awesome/css" rel="stylesheet" />
<!--[if IE 7]>
<link href='/Content/font-awesome-ie7.min.css' rel='stylesheet'/>
<![endif]-->
<script src="/Scripts/modernizr"></script>
<div id="searchBox" role="search">
<form action="/packages" method="get">
<span class="user-actions"><a href="/users/account/LogOff">退出</a></span>
<input name="q" id="searchBoxInput" />
<input id="searchBoxSubmit" type="submit" value="Submit" />
</form>
</div>";
string s = html.HtmlSantinizerStandard();//清理后:<div><span><a href="/users/account/LogOff">退出</a></span></div>
|
2 |
|
Masuit.Tools.Core
包含一些常用的操作类,大都是静态类,加密解密,反射操作,硬件信息,字符串扩展方法,日期时间扩展操作,大文件拷贝,图像裁剪,html处理,验证码、NoSql等常用封装。
示例代码:
1.检验字符串是否是Email
bool isEmail="1170397736@qq.com".MatchEmail();
2.获取CPU核心数
int core = SystemInfo.GetCpuCount();
3.大文件操作
FileStream fs = new FileStream(@"D:\boot.vmdk", FileMode.OpenOrCreate, FileAccess.ReadWrite);
{
//fs.CopyToFile(@"D:\1.bak");//同步复制大文件
fs.CopyToFileAsync(@"D:\1.bak");//异步复制大文件
string md5 = fs.GetFileMD5Async().Result;//异步获取文件的MD5
}
4.html的防XSS处理:
string html = @"<link href="/Content/font-awesome/css" rel="stylesheet" /><!--[if IE 7]>
<link href='/Content/font-awesome-ie7.min.css' rel='stylesheet'/>
<![endif]--><script src="/Scripts/modernizr"></script><div id="searchBox" role="search"><form action="/packages" method="get"><span class="user-actions"><a href="/users/account/LogOff">退出</a></span><input name="q" id="searchBoxInput" /><input id="searchBoxSubmit" type="submit" value="Submit" /></form></div>";
string s = html.HtmlSantinizerStandard();//清理后:<div><span><a href="/users/account/LogOff">退出</a></span></div>
5.整理操作系统的内存:
Windows.ClearMemorySilent();
......
|
2 |
|
Microsoft.AspNetCore.Owin
ASP.NET Core component for running OWIN middleware in an ASP.NET Core application, and to run ASP.NET Core middleware in an OWIN application.
This package was built from the source code at https://github.com/aspnet/HttpAbstractions/tree/91db78cf926939821bc96e8e60616cf5dde0b489
|
2 |
|
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core.
This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
|
2 |
|
Microsoft.AspNetCore.Server.Kestrel.Core
Core components of ASP.NET Core Kestrel cross-platform web server.
|
1 |
|
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core.
This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
|
1 |
|
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
|
1 |
.NET Framework 4.5.1
- Microsoft.AspNetCore.Http.Abstractions (>= 1.0.2)
- Microsoft.AspNetCore.WebUtilities (>= 1.0.2)
- Microsoft.Extensions.ObjectPool (>= 1.0.1)
- Microsoft.Extensions.Options (>= 1.0.2)
- Microsoft.Net.Http.Headers (>= 1.0.2)
- System.Buffers (>= 4.0.0)
.NET Standard 1.3
- System.Threading (>= 4.0.11)
- Microsoft.AspNetCore.Http.Abstractions (>= 1.0.2)
- Microsoft.AspNetCore.WebUtilities (>= 1.0.2)
- Microsoft.Extensions.ObjectPool (>= 1.0.1)
- Microsoft.Extensions.Options (>= 1.0.2)
- Microsoft.Net.Http.Headers (>= 1.0.2)
- System.Buffers (>= 4.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 2.3.9 | 1 | 01/10/2026 |
| 2.3.8 | 1 | 01/10/2026 |
| 2.3.0 | 1 | 01/10/2026 |
| 2.2.2 | 1 | 01/10/2026 |
| 2.2.0 | 1 | 01/10/2026 |
| 2.2.0-preview3-35497 | 0 | 10/17/2018 |
| 2.2.0-preview2-35157 | 0 | 09/12/2018 |
| 2.2.0-preview1-35029 | 0 | 08/22/2018 |
| 2.1.34 | 0 | 05/10/2022 |
| 2.1.22 | 0 | 09/08/2020 |
| 2.1.1 | 1 | 01/10/2026 |
| 2.1.0 | 1 | 01/10/2026 |
| 2.1.0-rc1-final | 0 | 05/06/2018 |
| 2.1.0-preview2-final | 1 | 01/11/2026 |
| 2.1.0-preview1-final | 1 | 01/11/2026 |
| 2.0.3 | 1 | 01/10/2026 |
| 2.0.2 | 1 | 01/10/2026 |
| 2.0.1 | 1 | 01/10/2026 |
| 2.0.0 | 1 | 01/10/2026 |
| 2.0.0-preview2-final | 1 | 01/11/2026 |
| 2.0.0-preview1-final | 1 | 01/11/2026 |
| 1.1.2 | 1 | 01/10/2026 |
| 1.1.1 | 1 | 01/10/2026 |
| 1.1.0 | 1 | 01/10/2026 |
| 1.1.0-preview1-final | 1 | 01/11/2026 |
| 1.0.4 | 1 | 01/10/2026 |
| 1.0.3 | 1 | 01/10/2026 |
| 1.0.2 | 1 | 01/10/2026 |
| 1.0.1 | 1 | 01/10/2026 |
| 1.0.0 | 1 | 01/10/2026 |
| 1.0.0-rc2-final | 0 | 05/16/2016 |