19 references to HostHeaderValue
Microsoft.AspNetCore.HeaderParsing (1)
HostHeaderValue.cs (1)
80result = new HostHeaderValue(parsedHost, hs.Port);
Microsoft.AspNetCore.HeaderParsing.Tests (18)
HostHeaderValueTests.cs (18)
13var host1 = new HostHeaderValue("localhost", 80); 14var sameAsHost1 = new HostHeaderValue("localhost", 80); 15var differentHost = new HostHeaderValue("127.0.0.1", 80); 16var differentPort = new HostHeaderValue("localhost", 443); 26var host1 = new HostHeaderValue("localhost", 80); 27object sameAsHost1 = new HostHeaderValue("localhost", 80); 28object differentHost = new HostHeaderValue("127.0.0.1", 80); 29object differentPort = new HostHeaderValue("localhost", 443); 44var host1 = new HostHeaderValue("localhost", 80); 45var sameAsHost1 = new HostHeaderValue("localhost", 80); 46var differentHost = new HostHeaderValue("127.0.0.1", 80); 47var differentPort = new HostHeaderValue("localhost", 443); 61var host1HashCode = new HostHeaderValue("localhost", 80).GetHashCode(); 62var sameAsHost1HashCode = new HostHeaderValue("localhost", 80).GetHashCode(); 63var differentHostHashCode = new HostHeaderValue("127.0.0.1", 80).GetHashCode(); 64var differentPortHashCode = new HostHeaderValue("localhost", 443).GetHashCode(); 74var hhv = new HostHeaderValue("foo", null); 77hhv = new HostHeaderValue("foo", 82);