internal HttpServer(WebApplication application, NetworkConfiguration networkConfiguration, MemoryConfiguration memoryConfiguration) { BufferProvider = new BufferProvider(memoryConfiguration.ClientBufferSize, memoryConfiguration.MaximalClientMemoryUsage); _accepter = new Accepter(networkConfiguration, memoryConfiguration, BufferProvider, _acceptClient); _downloader = new Downloader(_onHeadCompleted, _onContentCompleted); _responseManager = application.CreateResponseManager(); _inputManager = application.CreateInputManager(); Unit = new ProcessingUnit(); foreach (var table in application.CreateTables()) { Unit.Database.AddTable(table); } }
internal void SetResponse(ResponseManagerBase manager, Response response) { Response = response; Manager = manager; Response.AllowSessionFlip(); }