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