1 write to Headers
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\Response.cs (1)
40Headers = 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; 631Response.Headers.IsReadOnly = true; // Prohibit further modifications. 673var cacheControlHeader = response.Headers[HeaderNames.CacheControl]; 681if (response.Headers.ContainsKey(HeaderNames.SetCookie) 682|| response.Headers.ContainsKey(HeaderNames.Vary) 683|| response.Headers.ContainsKey(HeaderNames.Pragma)) 702if (HeaderUtilities.TryParseDate(response.Headers[HeaderNames.Expires].ToString(), out expirationDate)) 753Response.Headers[HeaderNames.Connection] = "close";
RequestProcessing\RequestContextOfT.cs (2)
95Response.Headers.IsReadOnly = false; 97Response.Headers.Clear();
RequestProcessing\Response.cs (16)
44Headers.IsReadOnly = false; 45Headers.Clear(); 157&& Headers.ContainsKey(HeaderNames.Trailer)); 167get { return Headers.ContentLength; } 168set { Headers.ContentLength = value; } 377Headers.IsReadOnly = false; // Temporarily unlock 396var responseConnectionString = Headers[HeaderNames.Connection]; 397var transferEncodingString = Headers[HeaderNames.TransferEncoding]; 441Headers[HeaderNames.ContentLength] = Constants.Zero; 449Headers[HeaderNames.TransferEncoding] = Constants.Chunked; 466Headers.Append(HeaderNames.Connection, Constants.Close); 475Headers.IsReadOnly = true; 486Headers.IsReadOnly = true; // Prohibit further modifications. 490if (Headers.Count == 0) 502foreach (var (headerName, headerValues) in Headers) 525foreach (var (headerName, headerValues) in Headers)