1 type derived from NameValueHeaderValue
System.Net.Http (1)
System\Net\Http\Headers\NameValueWithParametersHeaderValue.cs (1)
14public class NameValueWithParametersHeaderValue : NameValueHeaderValue, ICloneable
28 instantiations of NameValueHeaderValue
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (1)
120Headers.ContentType.Parameters.Add(new NameValueHeaderValue("action", action));
Microsoft.AspNetCore.OutputCaching.Tests (4)
OutputCacheTests.cs (4)
173client.DefaultRequestHeaders.Pragma.Add(new System.Net.Http.Headers.NameValueHeaderValue("no-cache")); 901client.DefaultRequestHeaders.Pragma.Add(new System.Net.Http.Headers.NameValueHeaderValue("From")); 906client.DefaultRequestHeaders.Pragma.Add(new System.Net.Http.Headers.NameValueHeaderValue("From")); 911client.DefaultRequestHeaders.Pragma.Add(new System.Net.Http.Headers.NameValueHeaderValue("From"));
Microsoft.AspNetCore.ResponseCaching.Tests (7)
ResponseCachingTests.cs (7)
185client.DefaultRequestHeaders.Pragma.Add(new System.Net.Http.Headers.NameValueHeaderValue("no-cache")); 861client.DefaultRequestHeaders.Pragma.Add(new System.Net.Http.Headers.NameValueHeaderValue("From")); 866client.DefaultRequestHeaders.Pragma.Add(new System.Net.Http.Headers.NameValueHeaderValue("Max-Forwards")); 871client.DefaultRequestHeaders.Pragma.Add(new System.Net.Http.Headers.NameValueHeaderValue("From")); 896client.DefaultRequestHeaders.Pragma.Add(new System.Net.Http.Headers.NameValueHeaderValue("From")); 901client.DefaultRequestHeaders.Pragma.Add(new System.Net.Http.Headers.NameValueHeaderValue("From")); 906client.DefaultRequestHeaders.Pragma.Add(new System.Net.Http.Headers.NameValueHeaderValue("From"));
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiTestBase.cs (2)
93noExtension.Parameters.Add(new NameValueHeaderValue("filename", "filename")); 95extension.Parameters.Add(new NameValueHeaderValue("filename", "filename.json"));
System.Net.Http (9)
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (3)
117Parameters.Add(new NameValueHeaderValue(size, sizeString)); 322Parameters.Add(new NameValueHeaderValue(parameter, dateString)); 388Parameters.Add(new NameValueHeaderValue(parameter, processedValue));
System\Net\Http\Headers\HeaderUtilities.cs (2)
53parameters.Add(new NameValueHeaderValue(qualityName, qualityString)); 366copy.Add(new NameValueHeaderValue(item));
System\Net\Http\Headers\MediaTypeHeaderValue.cs (1)
53Parameters.Add(new NameValueHeaderValue(CharSetName, value));
System\Net\Http\Headers\NameValueHeaderValue.cs (2)
385return new NameValueHeaderValue(); 391return new NameValueHeaderValue(this);
System\Net\Http\MultipartContent.cs (1)
58contentType.Parameters.Add(new NameValueHeaderValue(nameof(boundary), quotedBoundary));
System.Net.Requests (5)
System\Net\HttpWebRequest.cs (5)
1304pragmaHeaders.Add(new NameValueHeaderValue("no-cache")); 1311pragmaHeaders.Add(new NameValueHeaderValue("no-cache")); 1346pragmaHeaders.Add(new NameValueHeaderValue("no-cache")); 1360pragmaHeaders.Add(new NameValueHeaderValue("no-cache")); 1367pragmaHeaders.Add(new NameValueHeaderValue("no-cache"));
111 references to NameValueHeaderValue
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
AntiforgeryTests.cs (3)
48var pragmaValue = Assert.Single(response.Headers.Pragma.ToArray()); 100var pragmaValue = Assert.Single(response.Headers.Pragma.ToArray()); 182var pragmaValue = Assert.Single(response.Headers.Pragma.ToArray());
netstandard (1)
netstandard.cs (1)
1110[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.Headers.NameValueHeaderValue))]
System.Net.Http (106)
System\Net\Http\Headers\AuthenticationHeaderValue.cs (1)
272int valueLength = NameValueHeaderValue.GetValueLength(input, current);
System\Net\Http\Headers\CacheControlHeaderValue.cs (11)
57private UnvalidatedObjectCollection<NameValueHeaderValue>? _extensions; 163public ICollection<NameValueHeaderValue> Extensions => _extensions ??= new UnvalidatedObjectCollection<NameValueHeaderValue>(); 302NameValueHeaderValue.ToString(_extensions, ',', false, sb); 327NameValueHeaderValue.GetHashCode(_extensions)); 363List<NameValueHeaderValue> nameValueList = new List<NameValueHeaderValue>(); 372nameValueList.Add((NameValueHeaderValue)nameValue); 400private static bool TrySetCacheControlValues(CacheControlHeaderValue cc, List<NameValueHeaderValue> nameValueList) 402foreach (NameValueHeaderValue nameValue in nameValueList) 489private static bool TrySetOptionalTokenList(NameValueHeaderValue nameValue, ref TokenObjectCollection? destination)
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (19)
25private UnvalidatedObjectCollection<NameValueHeaderValue>? _parameters; 42public ICollection<NameValueHeaderValue> Parameters => _parameters ??= new UnvalidatedObjectCollection<NameValueHeaderValue>(); 84NameValueHeaderValue? sizeParameter = NameValueHeaderValue.Find(_parameters, size); 98NameValueHeaderValue? sizeParameter = NameValueHeaderValue.Find(_parameters, size); 155NameValueHeaderValue.ToString(_parameters, ';', true, sb); 175return StringComparer.OrdinalIgnoreCase.GetHashCode(_dispositionType) ^ NameValueHeaderValue.GetHashCode(_parameters); 237int parameterLength = NameValueHeaderValue.GetNameValueListLength(input, current, ';', 238(UnvalidatedObjectCollection<NameValueHeaderValue>)contentDispositionHeader.Parameters); 282NameValueHeaderValue? dateParameter = NameValueHeaderValue.Find(_parameters, parameter); 303NameValueHeaderValue? dateParameter = NameValueHeaderValue.Find(_parameters, parameter); 331NameValueHeaderValue? nameParameter = NameValueHeaderValue.Find(_parameters, parameter); 361NameValueHeaderValue? nameParameter = NameValueHeaderValue.Find(_parameters, parameter);
System\Net\Http\Headers\GenericHeaderParser.cs (2)
75int resultLength = NameValueHeaderValue.GetNameValueLength(value, startIndex, out NameValueHeaderValue? temp);
System\Net\Http\Headers\HeaderUtilities.cs (10)
30internal static void SetQuality(UnvalidatedObjectCollection<NameValueHeaderValue> parameters, double? value) 34NameValueHeaderValue? qualityParameter = NameValueHeaderValue.Find(parameters, qualityName); 122internal static double? GetQuality(UnvalidatedObjectCollection<NameValueHeaderValue> parameters) 126NameValueHeaderValue? qualityParameter = NameValueHeaderValue.Find(parameters, qualityName); 358internal static UnvalidatedObjectCollection<NameValueHeaderValue>? Clone(this UnvalidatedObjectCollection<NameValueHeaderValue>? source) 363var copy = new UnvalidatedObjectCollection<NameValueHeaderValue>(); 364foreach (NameValueHeaderValue item in source)
System\Net\Http\Headers\HttpGeneralHeaders.cs (3)
18private HttpHeaderValueCollection<NameValueHeaderValue>? _pragma; 76public HttpHeaderValueCollection<NameValueHeaderValue> Pragma => 77_pragma ??= new HttpHeaderValueCollection<NameValueHeaderValue>(KnownHeaders.Pragma.Descriptor, _parent);
System\Net\Http\Headers\HttpRequestHeaders.cs (1)
230public HttpHeaderValueCollection<NameValueHeaderValue> Pragma
System\Net\Http\Headers\HttpResponseHeaders.cs (1)
98public HttpHeaderValueCollection<NameValueHeaderValue> Pragma
System\Net\Http\Headers\MediaTypeHeaderValue.cs (10)
23private UnvalidatedObjectCollection<NameValueHeaderValue>? _parameters; 31get => NameValueHeaderValue.Find(_parameters, CharSetName)?.Value; 36NameValueHeaderValue? charSetParameter = NameValueHeaderValue.Find(_parameters, CharSetName); 61public ICollection<NameValueHeaderValue> Parameters => _parameters ??= new UnvalidatedObjectCollection<NameValueHeaderValue>(); 123NameValueHeaderValue.ToString(_parameters, ';', true, sb); 144return StringComparer.OrdinalIgnoreCase.GetHashCode(_mediaType!) ^ NameValueHeaderValue.GetHashCode(_parameters); 207int parameterLength = NameValueHeaderValue.GetNameValueListLength(input, current, ';', 208(UnvalidatedObjectCollection<NameValueHeaderValue>)mediaTypeHeader.Parameters);
System\Net\Http\Headers\MediaTypeWithQualityHeaderValue.cs (2)
13get => HeaderUtilities.GetQuality((UnvalidatedObjectCollection<NameValueHeaderValue>)Parameters); 14set => HeaderUtilities.SetQuality((UnvalidatedObjectCollection<NameValueHeaderValue>)Parameters, value);
System\Net\Http\Headers\NameValueHeaderValue.cs (23)
15private static readonly Func<NameValueHeaderValue> s_defaultNameValueCreator = CreateNameValue; 52protected internal NameValueHeaderValue(NameValueHeaderValue source) 83NameValueHeaderValue? other = obj as NameValueHeaderValue; 115public static NameValueHeaderValue Parse(string input) 118return (NameValueHeaderValue)GenericHeaderParser.SingleValueNameValueParser.ParseValue( 122public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out NameValueHeaderValue? parsedValue) 129parsedValue = (NameValueHeaderValue)output!; 146if (GetType() != typeof(NameValueHeaderValue)) 165internal static void ToString(UnvalidatedObjectCollection<NameValueHeaderValue>? values, char separator, bool leadingSeparator, 175foreach (var value in values) 186internal static int GetHashCode(UnvalidatedObjectCollection<NameValueHeaderValue>? values) 194foreach (var value in values) 201internal static int GetNameValueLength(string input, int startIndex, out NameValueHeaderValue? parsedValue) 207Func<NameValueHeaderValue> nameValueCreator, out NameValueHeaderValue? parsedValue) 266UnvalidatedObjectCollection<NameValueHeaderValue> nameValueCollection) 279NameValueHeaderValue? parameter; 280int nameValueLength = NameValueHeaderValue.GetNameValueLength(input, current, 304internal static NameValueHeaderValue? Find(UnvalidatedObjectCollection<NameValueHeaderValue>? values, string name) 313foreach (var value in values) 383private static NameValueHeaderValue CreateNameValue()
System\Net\Http\Headers\NameValueWithParametersHeaderValue.cs (11)
16private static readonly Func<NameValueHeaderValue> s_nameValueCreator = CreateNameValue; 18private UnvalidatedObjectCollection<NameValueHeaderValue>? _parameters; 20public ICollection<NameValueHeaderValue> Parameters => 21_parameters ??= new UnvalidatedObjectCollection<NameValueHeaderValue>(); 63return base.GetHashCode() ^ NameValueHeaderValue.GetHashCode(_parameters); 71NameValueHeaderValue.ToString(_parameters, ';', true, sb); 108int nameValueLength = NameValueHeaderValue.GetNameValueLength(input, startIndex, 109s_nameValueCreator, out NameValueHeaderValue? nameValue); 127int parameterLength = NameValueHeaderValue.GetNameValueListLength(input, current, ';', 128(UnvalidatedObjectCollection<NameValueHeaderValue>)nameValueWithParameters.Parameters); 144private static NameValueHeaderValue CreateNameValue()
System\Net\Http\Headers\TransferCodingHeaderValue.cs (7)
15private UnvalidatedObjectCollection<NameValueHeaderValue>? _parameters; 20public ICollection<NameValueHeaderValue> Parameters => _parameters ??= new UnvalidatedObjectCollection<NameValueHeaderValue>(); 93int parameterLength = NameValueHeaderValue.GetNameValueListLength(input, current, ';', 94(UnvalidatedObjectCollection<NameValueHeaderValue>)transferCodingHeader.Parameters); 116NameValueHeaderValue.ToString(_parameters, ';', true, sb); 136return StringComparer.OrdinalIgnoreCase.GetHashCode(_value) ^ NameValueHeaderValue.GetHashCode(_parameters);
System\Net\Http\Headers\TransferCodingWithQualityHeaderValue.cs (2)
13get => HeaderUtilities.GetQuality((UnvalidatedObjectCollection<NameValueHeaderValue>)Parameters); 14set => HeaderUtilities.SetQuality((UnvalidatedObjectCollection<NameValueHeaderValue>)Parameters, value);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (3)
1334var parsedValues = new UnvalidatedObjectCollection<NameValueHeaderValue>(); 1336if (NameValueHeaderValue.GetNameValueListLength(keepAlive, 0, ',', parsedValues) == keepAlive.Length) 1338foreach (NameValueHeaderValue nameValue in parsedValues)
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1292HttpHeaderValueCollection<NameValueHeaderValue> pragmaHeaders = request.Headers.Pragma;