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