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