public bool LoadConfig() { var configs = ConfigHelper.LoadServerConfig(); _Config = new HttpServerConfigure(); _Config.InitCommand(configs.CommandList); //设置主机头 _Config.HostList = configs.HostList; _Config.Port = configs.Port; _Config.SendThreads = configs.SendThreads; MaxPostLength = configs.MaxPostLength; MaxHeaderLines = configs.MaxHeaderLines; MaxQueuedRequests = configs.MaxQueuedRequests; return(true); }
/// <summary> /// 初始化 /// </summary> public HttpServer() { _Config = new HttpServerConfigure(); }
public bool LoadConfig() { var configs = ConfigHelper.LoadServerConfig(); _Config = new HttpServerConfigure(); _Config.InitCommand(configs.CommandList); //设置主机头 _Config.HostList = configs.HostList; _Config.Port = configs.Port; _Config.SendThreads = configs.SendThreads; MaxPostLength = configs.MaxPostLength; MaxHeaderLines = configs.MaxHeaderLines; MaxQueuedRequests = configs.MaxQueuedRequests; return true; }
/// <summary> /// 初始化 /// </summary> public HttpServer() { _Config = new HttpServerConfigure(); }