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