24 references to Name
System.Net.Http (24)
System\Net\Http\Headers\HeaderDescriptor.cs (1)
129return new HeaderDescriptor(Name, customHeader: true);
System\Net\Http\Headers\HttpHeaders.cs (8)
278vsb.Append(entry.Key.Name); 366yield return new KeyValuePair<string, IEnumerable<string>>(entry.Key.Name, values); 387Debug.Assert(descriptor.Parser.SupportsMultipleValues, $"Header '{descriptor.Name}' doesn't support multiple values"); 490Debug.Assert(headerRemoved, $"Existing header '{descriptor.Name}' couldn't be removed."); 804if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, SR.Format(SR.net_http_log_headers_no_newlines, descriptor.Name, rawValue)); 816if (NetEventSource.Log.IsEnabled()) NetEventSource.Log.HeadersInvalidValue(descriptor.Name, rawValue); 1002throw new InvalidOperationException(SR.Format(SR.net_http_headers_not_allowed_header_name, descriptor.Name)); 1030throw new FormatException(SR.Format(System.Globalization.CultureInfo.InvariantCulture, SR.net_http_headers_single_value_header, descriptor.Name));
System\Net\Http\Headers\HttpHeadersNonValidated.cs (1)
149entry.Key.Name,
System\Net\Http\Headers\HttpResponseHeaders.cs (1)
163KnownHeader? knownHeader = KnownHeaders.TryGetKnownHeader(descriptor.Name);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
1428Encoding? valueEncoding = encodingSelector?.Invoke(header.Key.Name, request); 1476WriteLiteralHeader(header.Key.Name, headerValues, valueEncoding, ref headerBuffer);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (3)
679if (NetEventSource.Log.IsEnabled()) Trace($"{descriptor.Name}: {Encoding.ASCII.GetString(value)}"); 681AdjustHeaderBudget(descriptor.Name.Length + value.Length); 704Encoding? valueEncoding = _connection._pool.Settings._responseHeaderEncodingSelector?.Invoke(descriptor.Name, _request);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (5)
726Encoding? valueEncoding = encodingSelector?.Invoke(header.Key.Name, _request); 766BufferLiteralHeaderWithoutNameReference(header.Key.Name, headerValues, HttpHeaderParser.DefaultSeparatorBytes, valueEncoding); 987if (descriptor.Name[0] == ':') 991if (NetEventSource.Log.IsEnabled()) Trace($"Received unknown pseudo-header '{descriptor.Name}'."); 1081Encoding? encoding = _connection.Pool.Settings._responseHeaderEncodingSelector?.Invoke(descriptor.Name, _request);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (3)
432WriteAsciiString(header.Key.Name); 439Encoding? valueEncoding = encodingSelector?.Invoke(header.Key.Name, _currentRequest); 1276Encoding? valueEncoding = _pool.Settings._responseHeaderEncodingSelector?.Invoke(descriptor.Name, _currentRequest!);