当前位置:网站首页>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
边栏推荐
- Operating principle of JS core EventLoop
- MySQL index
- Ijkplayer source code -- Library loading and initialization
- Opencv 07, pixel read, change and bitmap write
- House raiding
- The weight of the input and textarea components of the applet is higher than that of the fixed Z-index
- Introduction to facial expression recognition system - Technical Paper Edition
- How can intelligent safe power distribution devices reduce the occurrence of electrical fire accidents?
- Welcome to blog navigation
- Image classification system based on support vector machine (Matlab GUI interface version)
猜你喜欢
![[data analysis and visualization] key points of data drawing 10- construction of legend](/img/34/cdb9695873b6d33e5119ab49247cb5.jpg)
[data analysis and visualization] key points of data drawing 10- construction of legend

A wechat app for shopping

Rough understanding of wechat cloud development

小程序 input,textarea组件权重比fixed的z-index都高

01 initial knowledge of wechat applet

Ijkplayer source code ---packetqueue

Pycharm and Anaconda ultra detailed installation and configuration tutorial

Detailed installation tutorial of MATLAB r2019 B-mode ultrasound (complete installation files are attached)

Introduction to facial expression recognition system -- offline environment configuration

AAR packaging and confusion
随机推荐
My practice of SOA architecture project based on WCF
redis. Conf general configuration details
vant实现移动端的适配
Delphi implements adding a column of serial number to the CXGRID list
Ijkplayer source code --- decode
Node uses post to request req Pit with empty body
Ijkplayer source code - choose soft decoding or hard decoding
Data warehouse notes | 5 factors that need attention for customer dimension modeling
Opencv 10 brightness contrast adjustment
Hash table: whether alien languages are sorted
Summary of innovative ideas of transformer model in CV
Sword finger offer2: queue summary
Advanced stair climbing
[data analysis and visualization] key points of data drawing 3- spaghetti map
Image classification system based on support vector machine (Matlab GUI interface version)
Ijkplayer source code - setting options
Vant realizes the adaptation of mobile terminal
[deep learning] fast Reid tutorial
The weight of the input and textarea components of the applet is higher than that of the fixed Z-index
[life science] DNA extraction of basic biological experiments