4 instantiations of HttpListener
InMemory.FunctionalTests (1)
Microsoft.AspNetCore.InternalTesting.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
55 references to HttpListener
InMemory.FunctionalTests (5)
Microsoft.AspNetCore.InternalTesting.Tests (6)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
netstandard (1)
System (1)
System.Net.HttpListener (37)
System\Net\Managed\HttpEndPointListener.cs (17)
42private readonly HttpListener _listener;
46private Dictionary<ListenerPrefix, HttpListener> _prefixes;
52public HttpEndPointListener(HttpListener listener, IPAddress addr, int port, bool secure)
59_cert = HttpListener.LoadCertificateAndKey(addr, port);
72_prefixes = new Dictionary<ListenerPrefix, HttpListener>();
76internal HttpListener Listener
158HttpListener? listener = SearchListener(req.Url, out prefix);
175private HttpListener? SearchListener(Uri? uri, out ListenerPrefix? prefix)
186HttpListener? bestMatch = null;
191Dictionary<ListenerPrefix, HttpListener> localPrefixes = _prefixes;
233private static HttpListener? MatchFromList(string path, List<ListenerPrefix>? list, out ListenerPrefix? prefix)
239HttpListener? bestMatch = null;
320public void AddPrefix(ListenerPrefix prefix, HttpListener listener)
348Dictionary<ListenerPrefix, HttpListener> prefs, p2;
356p2 = new Dictionary<ListenerPrefix, HttpListener>(prefs);
392Dictionary<ListenerPrefix, HttpListener> prefs, p2;
399p2 = new Dictionary<ListenerPrefix, HttpListener>(prefs);