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