54 references to HttpRequestHeaders
Microsoft.AspNetCore.Server.Kestrel.Core (54)
Internal\Http\Http1Connection.cs (4)
602
var hostCount =
HttpRequestHeaders
.HostCount;
603
var hostText =
HttpRequestHeaders
.HeaderHost.ToString();
664
HttpRequestHeaders
.HeaderHost = hostText;
705
=> Http1MessageBody.For(_httpVersion,
HttpRequestHeaders
, this);
Internal\Http\HttpProtocol.cs (8)
387
HttpRequestHeaders
.Reset();
388
HttpRequestHeaders
.EncodingSelector = ServerOptions.RequestHeaderEncodingSelector;
389
HttpRequestHeaders
.ReuseHeaderValues = !ServerOptions.DisableStringReuse;
392
RequestHeaders =
HttpRequestHeaders
;
538
HttpRequestHeaders
.Append(name, value, checkForNewlineChars);
554
var valueStr = value.GetRequestHeaderString(key,
HttpRequestHeaders
.EncodingSelector, checkForNewlineChars: false);
569
HttpRequestHeaders
.OnHeadersComplete();
943
((IHeaderDictionary)
HttpRequestHeaders
).TryGetValue(HeaderNames.Expect, out var expect) &&
Internal\Http2\Http2Stream.cs (21)
233
HttpRequestHeaders
.ClearPseudoRequestHeaders();
237
HttpRequestHeaders
.MergeCookies();
264
if (!StringValues.IsNullOrEmpty(
HttpRequestHeaders
.HeaderProtocol))
267
if (StringValues.IsNullOrEmpty(
HttpRequestHeaders
.HeaderScheme) || StringValues.IsNullOrEmpty(
HttpRequestHeaders
.HeaderPath))
272
ConnectProtocol =
HttpRequestHeaders
.HeaderProtocol;
276
else if (!StringValues.IsNullOrEmpty(
HttpRequestHeaders
.HeaderScheme) || !StringValues.IsNullOrEmpty(
HttpRequestHeaders
.HeaderPath))
287
else if (!StringValues.IsNullOrEmpty(
HttpRequestHeaders
.HeaderProtocol))
298
var headerScheme =
HttpRequestHeaders
.HeaderScheme.ToString();
314
var path =
HttpRequestHeaders
.HeaderPath.ToString();
351
_methodText =
HttpRequestHeaders
.HeaderMethod.ToString();
377
var authority =
HttpRequestHeaders
.HeaderAuthority;
378
var host =
HttpRequestHeaders
.HeaderHost;
391
HttpRequestHeaders
.HeaderHost = authority;
700
HttpRequestHeaders
.HeaderMethod = HttpMethods.Get;
705
HttpRequestHeaders
.HeaderMethod = HttpMethods.Post;
710
HttpRequestHeaders
.HeaderScheme = SchemeHttp;
713
HttpRequestHeaders
.HeaderScheme = SchemeHttps;
723
if (!
HttpRequestHeaders
.TryHPackAppend(index, value, checkForNewlineChars: !indexOnly))
732
HttpRequestHeaders
.Append(name, value, checkForNewlineChars: true);
Internal\Http3\Http3Stream.cs (21)
247
HttpRequestHeaders
.HeaderMethod = HttpMethods.Get;
252
HttpRequestHeaders
.HeaderMethod = HttpMethods.Post;
257
HttpRequestHeaders
.HeaderScheme = SchemeHttp;
260
HttpRequestHeaders
.HeaderScheme = SchemeHttps;
270
if (!
HttpRequestHeaders
.TryQPackAppend(index, value, checkForNewlineChars: !indexOnly))
279
HttpRequestHeaders
.Append(name, value, checkForNewlineChars: true);
818
InputRemaining =
HttpRequestHeaders
.ContentLength;
830
if (_context.ServiceContext.ServerOptions.EnableWebTransportAndH3Datagrams &&
HttpRequestHeaders
.HeaderProtocol.Count > 0)
852
if (string.Equals(
HttpRequestHeaders
.HeaderProtocol, WebTransportSession.WebTransportProtocolValue, StringComparison.Ordinal))
855
if (((AspNetCore.Http.IHeaderDictionary)
HttpRequestHeaders
).TryGetValue(WebTransportSession.CurrentSupportedVersion, out var version) && string.Equals(version, WebTransportSession.VersionEnabledIndicator, StringComparison.Ordinal))
978
HttpRequestHeaders
.ClearPseudoRequestHeaders();
982
HttpRequestHeaders
.MergeCookies();
1002
if (Method == HttpMethod.Connect &&
HttpRequestHeaders
.HeaderProtocol.Count == 0)
1004
if (!string.IsNullOrEmpty(
HttpRequestHeaders
.HeaderScheme) || !string.IsNullOrEmpty(
HttpRequestHeaders
.HeaderPath))
1019
var headerScheme =
HttpRequestHeaders
.HeaderScheme.ToString();
1035
var path =
HttpRequestHeaders
.HeaderPath.ToString();
1072
_methodText =
HttpRequestHeaders
.HeaderMethod.ToString();
1098
var authority =
HttpRequestHeaders
.HeaderAuthority;
1099
var host =
HttpRequestHeaders
.HeaderHost;
1112
HttpRequestHeaders
.HeaderHost = authority;