mormot2 THttpServer
THttpServer = class(THttpServerGeneric)
/// main HTTP server Thread using the standard Sockets API (e.g. WinSock)
// - bind to a port and listen to incoming requests
// - assign this requests to THttpServerResp threads from a ThreadPool
// - it implements a HTTP/1.1 compatible server, according to RFC 2068 specifications
// - if the client is also HTTP/1.1 compatible, KeepAlive connection is handled:
// multiple requests will use the existing connection and thread;
// this is faster and uses less resources, especialy under Windows
// - a Thread Pool is used internally to speed up HTTP/1.0 connections - a
// typical use, under Linux, is to run this class behind a NGINX frontend,
// configured as https reverse proxy, leaving default "proxy_http_version 1.0"
// and "proxy_request_buffering on" options for best performance, and
// setting KeepAliveTimeOut=0 in the THttpServer.Create constructor
// - under windows, will trigger the firewall UAC popup at first run
// - don't forget to use Free method when you are finished
///主HTTP服務器線程使用標准的套接字API(例如WinSock)
// -綁定到一個端口並監聽傳入請求
// -將這個請求分配給ThreadPool中的THttpServerResp線程
// -它實現了一個HTTP/1.1兼容的服務器,根據RFC 2068規范
// -如果客戶端也是HTTP/1.1兼容的,則處理KeepAlive連接:
//多個請求將使用現有的連接和線程;
//這是更快和使用更少的資源,特別是在Windows下
//線程池用於內部加速HTTP/1.0連接- a
//在Linux下,典型的用法是在NGINX前端后面運行這個類,
//設置為HTTPS反向代理,保留默認的"proxy_http_version 1.0"
//和"proxy_request_buffering on"選項獲得最佳性能,和
//在THttpServer中設置KeepAliveTimeOut=0。創建構造函數
// -在窗口下,將觸發防火牆UAC彈出在第一次運行
// -當你完成時不要忘記使用Free方法
