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