4 instantiations of HeaderStringValues
System.Net.Http (4)
System\Net\Http\Headers\HttpHeadersNonValidated.cs (4)
71
new
HeaderStringValues
(descriptor, singleValue) :
72
new
HeaderStringValues
(descriptor, multiValue!);
150
singleValue is not null ? new
HeaderStringValues
(entry.Key, singleValue) : new
HeaderStringValues
(entry.Key, multiValue!));
28 references to HeaderStringValues
System.Net.Http (23)
System\Net\Http\Headers\HeaderStringValues.cs (1)
62
/// <summary>Enumerates the elements of a <see cref="
HeaderStringValues
"/>.</summary>
System\Net\Http\Headers\HeaderUtilities.cs (1)
342
foreach (KeyValuePair<string,
HeaderStringValues
> header in hh.NonValidated)
System\Net\Http\Headers\HttpHeadersNonValidated.cs (18)
17
public readonly struct HttpHeadersNonValidated : IReadOnlyDictionary<string,
HeaderStringValues
>
42
public
HeaderStringValues
this[string headerName]
46
if (TryGetValues(headerName, out
HeaderStringValues
values))
56
bool IReadOnlyDictionary<string,
HeaderStringValues
>.ContainsKey(string key) => Contains(key);
62
public bool TryGetValues(string headerName, out
HeaderStringValues
values)
81
bool IReadOnlyDictionary<string,
HeaderStringValues
>.TryGetValue(string key, out
HeaderStringValues
value) => TryGetValues(key, out value);
91
IEnumerator<KeyValuePair<string,
HeaderStringValues
>> IEnumerable<KeyValuePair<string,
HeaderStringValues
>>.GetEnumerator() => GetEnumerator();
97
IEnumerable<string> IReadOnlyDictionary<string,
HeaderStringValues
>.Keys
101
foreach (KeyValuePair<string,
HeaderStringValues
> header in this)
109
IEnumerable<
HeaderStringValues
> IReadOnlyDictionary<string,
HeaderStringValues
>.Values
113
foreach (KeyValuePair<string,
HeaderStringValues
> header in this)
121
public struct Enumerator : IEnumerator<KeyValuePair<string,
HeaderStringValues
>>
126
private KeyValuePair<string,
HeaderStringValues
> _current;
148
_current = new KeyValuePair<string,
HeaderStringValues
>(
159
public KeyValuePair<string,
HeaderStringValues
> Current => _current;
System\Net\Http\MultipartContent.cs (2)
317
foreach (KeyValuePair<string,
HeaderStringValues
> headerPair in content.Headers.NonValidated)
372
foreach (KeyValuePair<string,
HeaderStringValues
> headerPair in content.Headers.NonValidated)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
360
request.Headers.NonValidated.TryGetValues(HttpKnownHeaderNames.UserAgent, out
HeaderStringValues
userAgent))
System.Net.WebSockets.Client (5)
System\Net\WebSockets\HttpResponseHeadersReadOnlyCollection.cs (4)
23
foreach (KeyValuePair<string,
HeaderStringValues
> header in _headers)
34
foreach (KeyValuePair<string,
HeaderStringValues
> header in _headers)
47
foreach (KeyValuePair<string,
HeaderStringValues
> header in _headers)
55
if (_headers.TryGetValues(key, out
HeaderStringValues
values))
System\Net\WebSockets\WebSocketHandle.Managed.cs (1)
513
if (headers.NonValidated.TryGetValues(name, out
HeaderStringValues
hsv))