17 references to Connection
System.Net.HttpListener (17)
System\Net\Managed\ChunkedInputStream.cs (1)
147
_context.
Connection
.SendError(e.Message, 400);
System\Net\Managed\HttpEndPointListener.cs (1)
163
context.
Connection
.Prefix = prefix;
System\Net\Managed\HttpListener.Managed.cs (2)
225
all[i].
Connection
.Close(true);
242
ctxs[i].
Connection
.Close(true);
System\Net\Managed\HttpListenerRequest.Managed.cs (9)
186
_context.
Connection
.SendError(null, 501);
196
_context.
Connection
.SendError(null, 411);
203
HttpResponseStream output = _context.
Connection
.GetResponseStream();
288
private X509Certificate2? GetClientCertificateCore() => ClientCertificate = _context.
Connection
.ClientCertificate;
292
HttpConnection cnc = _context.
Connection
;
325
_inputStream = _context.
Connection
.GetRequestStream(_isChunked, _contentLength);
336
public bool IsSecureConnection => _context.
Connection
.IsSecure;
338
public IPEndPoint? LocalEndPoint => _context.
Connection
.LocalEndPoint;
340
public IPEndPoint? RemoteEndPoint => _context.
Connection
.RemoteEndPoint;
System\Net\Managed\HttpListenerResponse.Managed.cs (3)
55
_responseStream ??= _httpContext!.
Connection
.GetResponseStream();
109
_httpContext!.
Connection
.Close(force);
242
int reuses = _httpContext!.
Connection
.Reuses;
System\Net\Managed\WebSockets\HttpWebSocket.Managed.cs (1)
59
WebSocket webSocket = WebSocket.CreateFromStream(context.
Connection
.ConnectedStream, isServer: true, subProtocol, keepAliveInterval);