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