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)
89Response.Headers.IsReadOnly = false; 91Response.Headers.Clear();
RequestProcessing\Response.cs (16)
44Headers.IsReadOnly = false; 45Headers.Clear(); 157&& Headers.ContainsKey(HeaderNames.Trailer)); 167get { return Headers.ContentLength; } 168set { Headers.ContentLength = value; } 380Headers.IsReadOnly = false; // Temporarily unlock 399var responseConnectionString = Headers[HeaderNames.Connection]; 400var transferEncodingString = Headers[HeaderNames.TransferEncoding]; 444Headers[HeaderNames.ContentLength] = Constants.Zero; 452Headers[HeaderNames.TransferEncoding] = Constants.Chunked; 469Headers.Append(HeaderNames.Connection, Constants.Close); 478Headers.IsReadOnly = true; 489Headers.IsReadOnly = true; // Prohibit further modifications. 493if (Headers.Count == 0) 505foreach (var (headerName, headerValues) in Headers) 528foreach (var (headerName, headerValues) in Headers)