1 write to _context
System.Net.HttpListener (1)
System\Net\Managed\HttpConnection.cs (1)
139_context = new HttpListenerContext(this);
26 references to _context
System.Net.HttpListener (26)
System\Net\Managed\HttpConnection.cs (26)
128[MemberNotNull(nameof(_context))] 215_context.Response.SendChunked = true; 216_requestStream = new ChunkedInputStream(_context, _stream, buffer, _position, length - _position); 230HttpListener? listener = _context._listener; 233return new HttpResponseStream(_stream, _context.Response, true); 235_responseStream = new HttpResponseStream(_stream, _context.Response, listener.IgnoreWriteExceptions); 291if (!_context.HaveError) 292_context.Request.FinishInitialization(); 294if (_context.HaveError) 301if (!_epl.BindContext(_context)) 308HttpListener listener = _context._listener!; 317listener.RegisterContext(_context); 355if (_context.HaveError) 368_context.ErrorMessage = HttpStatusDescription.Get(400)!; 369_context.ErrorStatus = 400; 386_context.Request.SetRequestLine(line); 393_context.Request.AddHeader(line); 397_context.ErrorMessage = e.Message; 398_context.ErrorStatus = 400; 450HttpListenerResponse response = _context.Response; 469SendError(_context.ErrorMessage, _context.ErrorStatus); 476HttpEndPointListener.UnbindContext(_context); 515force |= !_context.Request.KeepAlive; 517force = (_context.Response.Headers[HttpKnownHeaderNames.Connection] == HttpHeaderStrings.Close); 519if (!force && _context.Request.FlushInput())