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);
230
HttpListener? listener =
_context
._listener;
233
return new HttpResponseStream(_stream,
_context
.Response, true);
235
_responseStream = new HttpResponseStream(_stream,
_context
.Response, listener.IgnoreWriteExceptions);
291
if (!
_context
.HaveError)
292
_context
.Request.FinishInitialization();
294
if (
_context
.HaveError)
301
if (!_epl.BindContext(
_context
))
308
HttpListener listener =
_context
._listener!;
317
listener.RegisterContext(
_context
);
355
if (
_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;
450
HttpListenerResponse response =
_context
.Response;
469
SendError(
_context
.ErrorMessage,
_context
.ErrorStatus);
476
HttpEndPointListener.UnbindContext(
_context
);
515
force |= !
_context
.Request.KeepAlive;
517
force = (
_context
.Response.Headers[HttpKnownHeaderNames.Connection] == HttpHeaderStrings.Close);
519
if (!force &&
_context
.Request.FlushInput())