1 instantiation of UrlPrefix
Microsoft.AspNetCore.Server.HttpSys (1)
UrlPrefix.cs (1)
93return new UrlPrefix(isHttps, scheme, host, port, portValue.Value, path);
56 references to UrlPrefix
HotAddSample (1)
Startup.cs (1)
90foreach (var prefix in addresses)
Microsoft.AspNetCore.Server.HttpSys (28)
MessagePump.cs (1)
114foreach (var prefix in _options.UrlPrefixes)
RequestProcessing\Request.cs (1)
66var prefix = requestContext.Server.Options.UrlPrefixes.GetPrefix((int)requestContext.UrlContext);
UrlPrefix.cs (5)
34public static UrlPrefix Create(string scheme, string host, string port, string path) 42return UrlPrefix.Create(scheme, host, portValue, path); 52public static UrlPrefix Create(string scheme, string host, int? portValue, string path) 99/// <param name="prefix">The string that the <see cref="UrlPrefix"/> will be created from.</param> 100public static UrlPrefix Create(string prefix)
UrlPrefixCollection.cs (21)
15public class UrlPrefixCollection : ICollection<UrlPrefix> 17private readonly IDictionary<int, UrlPrefix> _prefixes = new Dictionary<int, UrlPrefix>(1); 52/// Creates a <see cref="UrlPrefix"/> from the given string, and adds it to this collection. 54/// <param name="prefix">The string representing the <see cref="UrlPrefix"/> to add to this collection.</param> 57Add(UrlPrefix.Create(prefix)); 61/// Adds a <see cref="UrlPrefix"/> to this collection. 64public void Add(UrlPrefix item) 74internal UrlPrefix? GetPrefix(int id) 78return _prefixes.TryGetValue(id, out var prefix) ? prefix : null; 90foreach (var prefix in _prefixes.Values) 122public bool Contains(UrlPrefix item) 131public void CopyTo(UrlPrefix[] array, int arrayIndex) 142return Remove(UrlPrefix.Create(prefix)); 146public bool Remove(UrlPrefix item) 171public IEnumerator<UrlPrefix> GetEnumerator() 193var urlPrefix = pair.Value; 212private void FindHttpPortUnsynchronized(int key, UrlPrefix urlPrefix) 226var newPrefix = UrlPrefix.Create(urlPrefix.Scheme, urlPrefix.Host, port, urlPrefix.Path); 255foreach (var prefix in _prefixes.Values)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (17)
Listener\AuthenticationOnExistingQueueTests.cs (4)
36var basePrefix = UrlPrefix.Create(baseServerAddress); 37var prefix = UrlPrefix.Create(basePrefix.Scheme, basePrefix.Host, basePrefix.Port, "/server");
Listener\Utilities.cs (3)
44var prefix = UrlPrefix.Create("http", "localhost", port, basePath); 80listener.Options.UrlPrefixes.Add(UrlPrefix.Create(scheme, host, port, path));
RequestTests.cs (1)
610server.Listener.Options.UrlPrefixes.Add(UrlPrefix.Create(rootUri.Scheme, rootUri.Host, rootUri.Port, path));
ServerTests.cs (3)
75var prefix = UrlPrefix.Create(address); 343server.Listener.Options.UrlPrefixes.Add(UrlPrefix.Create(address));
Utilities.cs (6)
87var prefix = UrlPrefix.Create("http", "localhost", "0", basePath); 126var prefix = UrlPrefix.Create("http", "localhost", "0", basePath); 151var prefix = UrlPrefix.Create("https", "localhost", port, basePath);
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (2)
Utilities.cs (2)
45var prefix = UrlPrefix.Create("http", "localhost", "0", basePath);
Microsoft.AspNetCore.Server.HttpSys.Tests (8)
UrlPrefixTests.cs (8)
18Assert.Throws<FormatException>(() => UrlPrefix.Create(url)); 27Assert.Throws<ArgumentOutOfRangeException>(() => UrlPrefix.Create(url)); 39Assert.Throws<ArgumentException>(() => UrlPrefix.Create(url)); 49Assert.Throws<FormatException>(() => UrlPrefix.Create(url)); 66var urlPrefix = UrlPrefix.Create(url); 79var urlPrefix = UrlPrefix.Create("http://localhost:8080/p\u0041\u030Athbase");