public HttpConfig() { Port = 9090; SSL = false; MaxBodyLength = 1024 * 1024; BodySerializer = new JsonBodySerializer(); Encoding = Encoding.UTF8; OutputStackTrace = false; Filters = new List <FilterAttribute>(); StaticResurceType = @"jpg=image/jpeg;jpeg=image/jpeg;gif=image/gif;png=image/png;js=application/x-javascript;html=text/html;htm=text/html;css=text/css;txt=text/plain;ico=application/x-ico"; StaticResourcePath = System.IO.Directory.GetCurrentDirectory() + System.IO.Path.DirectorySeparatorChar + "views"; DefaultPage = "index.html;index.htm"; Debug = false; Manager = "admin"; ManagerPWD = "123456"; WriteLog = false; MaxConnections = 2000; NoGzipFiles = "jpg;jpeg;png;gif;png;ico;zip;rar"; CacheFiles = "html;htm;js;css"; BufferSize = 1024 * 8; WebSocketMaxRPS = 30; LogLevel = EventArgs.LogType.Warring; this.LogToConsole = false; }
public HttpConfig() { Port = 9090; SSL = false; MaxBodyLength = 1024 * 1024; BodySerializer = new JsonBodySerializer(); Encoding = Encoding.UTF8; OutputStackTrace = false; Filters = new List <FilterAttribute>(); StaticResurceType = @"jpg=image/jpeg;jpeg=image/jpeg;gif=image/gif;png=image/png;js=application/x-javascript;html=text/html;htm=text/html;css=text/css;txt=text/plain;ico=application/x-ico"; StaticResourcePath = System.IO.Directory.GetCurrentDirectory() + System.IO.Path.DirectorySeparatorChar + "views"; DefaultPage = "index.html;index.htm"; Debug = false; }