1 write to Headers
Microsoft.AspNetCore.Http.Extensions (1)
32 references to Headers
Microsoft.AspNetCore.Http.Extensions (28)
ResponseHeaders.cs (28)
38return Headers.Get<CacheControlHeaderValue>(HeaderNames.CacheControl);
42Headers.Set(HeaderNames.CacheControl, value);
53return Headers.Get<ContentDispositionHeaderValue>(HeaderNames.ContentDisposition);
57Headers.Set(HeaderNames.ContentDisposition, value);
68return Headers.ContentLength;
72Headers.ContentLength = value;
83return Headers.Get<ContentRangeHeaderValue>(HeaderNames.ContentRange);
87Headers.Set(HeaderNames.ContentRange, value);
98return Headers.Get<MediaTypeHeaderValue>(HeaderNames.ContentType);
102Headers.Set(HeaderNames.ContentType, value);
113return Headers.GetDate(HeaderNames.Date);
117Headers.SetDate(HeaderNames.Date, value);
128return Headers.Get<EntityTagHeaderValue>(HeaderNames.ETag);
132Headers.Set(HeaderNames.ETag, value);
143return Headers.GetDate(HeaderNames.Expires);
147Headers.SetDate(HeaderNames.Expires, value);
158return Headers.GetDate(HeaderNames.LastModified);
162Headers.SetDate(HeaderNames.LastModified, value);
173if (Uri.TryCreate(Headers.Location, UriKind.RelativeOrAbsolute, out var uri))
181Headers.Set(HeaderNames.Location, value == null ? null : UriHelper.Encode(value));
192return Headers.SetCookie.GetList<SetCookieHeaderValue>();
196Headers.SetList(HeaderNames.SetCookie, value);
210return Headers.Get<T>(name);
223return Headers.GetList<T>(name);
235Headers.Set(name, value);
248Headers.SetList<T>(name, values);
261Headers.Append(name, value.ToString());
271Headers.AppendList<T>(name, values);
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.StaticFiles (1)