Example #1
0
        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);
        }
Example #2
0
 /// <summary>
 /// 初始化
 /// </summary>
 public HttpServer()
 {
     _Config = new HttpServerConfigure();
 }
Example #3
0
        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;
        }
Example #4
0
 /// <summary>
 /// 初始化
 /// </summary>
 public HttpServer()
 {
     _Config = new HttpServerConfigure();
 }