示例#1
0
        public Http1Connection(Http1ConnectionContext context)
            : base(context)
        {
            _context                    = context;
            _parser                     = ServiceContext.HttpParser;
            _keepAliveTicks             = ServerOptions.Limits.KeepAliveTimeout.Ticks;
            _requestHeadersTimeoutTicks = ServerOptions.Limits.RequestHeadersTimeout.Ticks;

            Output = new Http1OutputProducer(_context.Application.Input, _context.Transport.Output, _context.ConnectionId, _context.ServiceContext.Log, _context.TimeoutControl);
        }
示例#2
0
        public Http1Connection(Http1ConnectionContext context)
            : base(context)
        {
            _context                    = context;
            _parser                     = ServiceContext.HttpParser;
            _keepAliveTicks             = ServerOptions.Limits.KeepAliveTimeout.Ticks;
            _requestHeadersTimeoutTicks = ServerOptions.Limits.RequestHeadersTimeout.Ticks;

            Output = new Http1OutputProducer(
                _context.Transport.Output,
                _context.ConnectionId,
                _context.ConnectionContext,
                _context.ServiceContext.Log,
                _context.TimeoutControl,
                _context.ConnectionFeatures.Get <IBytesWrittenFeature>());
        }
示例#3
0
 public Http1Connection(IHttpApplication <TContext> application, Http1ConnectionContext context)
     : base(context)
 {
     _application = application;
 }