1 write to Headers
Microsoft.AspNetCore.Http.Extensions (1)
ResponseHeaders.cs (1)
23Headers = headers;
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)
TestUtils.cs (1)
37headers.Headers["X-Value"] = guid;
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
56headers.Headers["X-Value"] = guid;
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsInvoker.cs (1)
103responseHeaders.Headers.AcceptRanges = "bytes";
Microsoft.AspNetCore.StaticFiles (1)
StaticFileContext.cs (1)
262responseHeaders.Headers.AcceptRanges = "bytes";