1 write to Headers
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\Response.cs (1)
39Headers = new HeaderCollection();
28 references to Headers
Microsoft.AspNetCore.Server.HttpSys (28)
AuthenticationManager.cs (2)
185context.Response.Headers[HeaderNames.WWWAuthenticate] 186= StringValues.Concat(context.Response.Headers[HeaderNames.WWWAuthenticate], challenges.ToArray());
RequestProcessing\RequestContext.FeatureCollection.cs (8)
142_responseHeaders = Response.Headers; 629Response.Headers.IsReadOnly = true; // Prohibit further modifications. 671var cacheControlHeader = response.Headers[HeaderNames.CacheControl]; 679if (response.Headers.ContainsKey(HeaderNames.SetCookie) 680|| response.Headers.ContainsKey(HeaderNames.Vary) 681|| response.Headers.ContainsKey(HeaderNames.Pragma)) 700if (HeaderUtilities.TryParseDate(response.Headers[HeaderNames.Expires].ToString(), out expirationDate)) 751Response.Headers[HeaderNames.Connection] = "close";
RequestProcessing\RequestContextOfT.cs (2)
89Response.Headers.IsReadOnly = false; 91Response.Headers.Clear();
RequestProcessing\Response.cs (16)
43Headers.IsReadOnly = false; 44Headers.Clear(); 156&& Headers.ContainsKey(HeaderNames.Trailer)); 166get { return Headers.ContentLength; } 167set { Headers.ContentLength = value; } 379Headers.IsReadOnly = false; // Temporarily unlock 398var responseConnectionString = Headers[HeaderNames.Connection]; 399var transferEncodingString = Headers[HeaderNames.TransferEncoding]; 443Headers[HeaderNames.ContentLength] = Constants.Zero; 451Headers[HeaderNames.TransferEncoding] = Constants.Chunked; 468Headers.Append(HeaderNames.Connection, Constants.Close); 477Headers.IsReadOnly = true; 488Headers.IsReadOnly = true; // Prohibit further modifications. 492if (Headers.Count == 0) 504foreach (var (headerName, headerValues) in Headers) 527foreach (var (headerName, headerValues) in Headers)