当前位置:网站首页>Introduction to Kestrel_ Introduction to kestrel web server
Introduction to Kestrel_ Introduction to kestrel web server
2022-06-13 02:55:00 【Tianma 3798】
Kestrel brief introduction _Kestrel Web Server profile
One 、Kestrel brief introduction
Kestrel It's a Cross platform Of applies to Kestrel.
Kestrel Is contained in ASP.NET Core In the project template Web The server , It is enabled by default .
.NET Core All supported platforms and versions support Kestrel.
More detailed configuration and use :ASP.NET Core Medium Kestrel Web Server implementation | Microsoft Docs
not used IIS In escrow ,ASP.NET Core By default, the project template uses Kestrel. stay “Program.cs” in , Method call UseKestrel:
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Hello World!");
app.Run();
Two 、 Server configuration endpoint
var builder = WebApplication.CreateBuilder(args);
// Configure server
builder.WebHost.UseUrls("http://localhost:8080");
// Add services to the container.
builder.Services.AddControllersWithViews();
var app = builder.Build();
For more detailed configuration reference :
by ASP.NET Core Kestrel Web Server configuration endpoint | Microsoft Docs
ASP.NET Core Web host | Microsoft Docs
By default :
Kestrel stay http://localhost:5000 and https://localhost:5001 Listen on ( If the default certificate is available ).
3、 ... and 、Kestrel And HTTP.sys
And HTTP.sys comparison ,Kestrel It has the following advantages :
- Better performance and memory utilization .
- Cross platform
- flexibility , It is developed and patched independently of the operating system .
- Programming ports and TLS To configure
- Extensibility , allow PPv2 And other protocols and standby transmission .
Http.Sys Run as a shared kernel mode component , have kestrel The following functions are not available :
- Port sharing
- Kernel mode Windows Authentication . Kestrel Only user mode authentication is supported .
- A fast agent that transmits through a queue
- Direct file transfer
- Response cache
more :
.Net Core Upload components _.Net Core Image upload processing component
C# common Url Examples of operation ( One )、 Regular Expression Matching URl
C# obtain Url The domain name
边栏推荐
- Kotlin memorandum
- Linked lists: rearranging linked lists
- Linked list: the entry node of the link in the linked list
- Summary of the latest IOS interview questions in June 2020 (answers)
- Graduation project - campus old thing recycling system based on stm32
- MySQL index
- 【pytorch 记录】pytorch的变量parameter、buffer。self.register_buffer()、self.register_parameter()
- Bi modal progressive mask attention for fine graded recognition
- JS multiple judgment writing
- Ijkplayer source code - rendering
猜你喜欢
Introduction to facial expression recognition system - Technical Paper Edition
Scala implements workcount
Useful websites for writing papers and studying at ordinary times
05 tabbar navigation bar function
Prometheus install and register services
Summary of innovative ideas of transformer model in CV
Uni app Foundation
[data and Analysis Visualization] data operation in D3 tutorial 3-d3
[data analysis and visualization] key points of data drawing 12- importance of chart notes
Data processing in detailed machine learning (II) -- Feature Normalization
随机推荐
OpenCVSharpSample05Wpf
Example 4 linear filtering and built-in filtering
Exam23 named windows and simplified paths, grayscale conversion
JS multiple judgment writing
PCR validation of basic biological experiments in [life sciences]
IOS development interview knowledge sorting - OC Foundation (II)
Using binary heap to implement priority queue
Implementing fillet in custom dialog
Digital IC Design -- FIFO design
Retrofit easy to use
Vant框架中关于IndexBar索引栏的CDN单页面引用,无法正常展示
Summary of the latest IOS interview questions in June 2020 (answers)
Rounding in JS
专业的数据库管理软件:Valentina Studio Pro for Mac
Linked list: reverse linked list
Ijkplayer source code -- mnatemediaplayer of ijkmediaplayer
IOS development internal volume interview questions
Uni app Foundation
Change tax for 2
[thoughts in the essay] mourn for development technology expert Mao Xingyun