10 instantiations of ProductHeaderValue
Microsoft.AspNetCore.WebSockets.Tests (5)
WebSocketCompressionMiddlewareTests.cs (1)
173
request.Headers.Upgrade.Add(new System.Net.Http.Headers.
ProductHeaderValue
("websocket"));
WebSocketMiddlewareTests.cs (4)
679
request.Headers.Upgrade.Add(new System.Net.Http.Headers.
ProductHeaderValue
("websocket"));
763
request.Headers.Upgrade.Add(new System.Net.Http.Headers.
ProductHeaderValue
("websocket"));
764
request.Headers.Upgrade.Add(new System.Net.Http.Headers.
ProductHeaderValue
("example"));
835
request.Headers.Upgrade.Add(new System.Net.Http.Headers.
ProductHeaderValue
("websocket"));
Microsoft.DotNet.Helix.Sdk (1)
Helpers.cs (1)
12
new ProductInfoHeaderValue(new
ProductHeaderValue
("HelixSdk", ProductVersion));
System.Net.Http (4)
System\Net\Http\Headers\ProductHeaderValue.cs (3)
129
parsedValue = new
ProductHeaderValue
(name);
149
parsedValue = new
ProductHeaderValue
(name, version);
155
return new
ProductHeaderValue
(this);
System\Net\Http\Headers\ProductInfoHeaderValue.cs (1)
19
: this(new
ProductHeaderValue
(productName, productVersion))
21 references to ProductHeaderValue
netstandard (1)
netstandard.cs (1)
1112
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.Headers.
ProductHeaderValue
))]
System.Net.Http (20)
System\Net\Http\Headers\GenericHeaderParser.cs (2)
83
int resultLength =
ProductHeaderValue
.GetProductLength(value, startIndex, out
ProductHeaderValue
? temp);
System\Net\Http\Headers\HttpGeneralHeaders.cs (3)
15
private HttpHeaderValueCollection<
ProductHeaderValue
>? _upgrade;
134
public HttpHeaderValueCollection<
ProductHeaderValue
> Upgrade =>
135
_upgrade ??= new HttpHeaderValueCollection<
ProductHeaderValue
>(KnownHeaders.Upgrade.Descriptor, _parent);
System\Net\Http\Headers\HttpRequestHeaders.cs (1)
251
public HttpHeaderValueCollection<
ProductHeaderValue
> Upgrade
System\Net\Http\Headers\HttpResponseHeaders.cs (1)
119
public HttpHeaderValueCollection<
ProductHeaderValue
> Upgrade
System\Net\Http\Headers\ProductHeaderValue.cs (8)
43
private ProductHeaderValue(
ProductHeaderValue
source)
62
ProductHeaderValue
? other = obj as
ProductHeaderValue
;
85
public static
ProductHeaderValue
Parse(string input)
88
return (
ProductHeaderValue
)GenericHeaderParser.SingleValueProductParser.ParseValue(input, null, ref index);
91
public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out
ProductHeaderValue
? parsedValue)
98
parsedValue = (
ProductHeaderValue
)output!;
104
internal static int GetProductLength(string input, int startIndex, out
ProductHeaderValue
? parsedValue)
System\Net\Http\Headers\ProductInfoHeaderValue.cs (5)
11
private readonly
ProductHeaderValue
? _product;
14
public
ProductHeaderValue
? Product => _product;
23
public ProductInfoHeaderValue(
ProductHeaderValue
product)
130
ProductHeaderValue
? product;
149
int productLength =
ProductHeaderValue
.GetProductLength(input, current, out product);