1 write to Headers
Microsoft.AspNetCore.Http.Extensions (1)
48 references to Headers
Microsoft.AspNetCore.Http.Extensions (48)
RequestHeaders.cs (48)
38return Headers.Accept.GetList<MediaTypeHeaderValue>();
42Headers.SetList(HeaderNames.Accept, value);
53return Headers.AcceptCharset.GetList<StringWithQualityHeaderValue>();
57Headers.SetList(HeaderNames.AcceptCharset, value);
68return Headers.AcceptEncoding.GetList<StringWithQualityHeaderValue>();
72Headers.SetList(HeaderNames.AcceptEncoding, value);
83return Headers.AcceptLanguage.GetList<StringWithQualityHeaderValue>();
87Headers.SetList(HeaderNames.AcceptLanguage, value);
98return Headers.Get<CacheControlHeaderValue>(HeaderNames.CacheControl);
102Headers.Set(HeaderNames.CacheControl, value);
113return Headers.Get<ContentDispositionHeaderValue>(HeaderNames.ContentDisposition);
117Headers.Set(HeaderNames.ContentDisposition, value);
128return Headers.ContentLength;
132Headers.ContentLength = value;
143return Headers.Get<ContentRangeHeaderValue>(HeaderNames.ContentRange);
147Headers.Set(HeaderNames.ContentRange, value);
158return Headers.Get<MediaTypeHeaderValue>(HeaderNames.ContentType);
162Headers.Set(HeaderNames.ContentType, value);
173return Headers.Cookie.GetList<CookieHeaderValue>();
177Headers.SetList(HeaderNames.Cookie, value);
188return Headers.GetDate(HeaderNames.Date);
192Headers.SetDate(HeaderNames.Date, value);
203return Headers.GetDate(HeaderNames.Expires);
207Headers.SetDate(HeaderNames.Expires, value);
218return HostString.FromUriComponent(Headers.Host.ToString());
222Headers.Host = value.ToUriComponent();
233return Headers.IfMatch.GetList<EntityTagHeaderValue>();
237Headers.SetList(HeaderNames.IfMatch, value);
248return Headers.GetDate(HeaderNames.IfModifiedSince);
252Headers.SetDate(HeaderNames.IfModifiedSince, value);
263return Headers.IfNoneMatch.GetList<EntityTagHeaderValue>();
267Headers.SetList(HeaderNames.IfNoneMatch, value);
278return Headers.Get<RangeConditionHeaderValue>(HeaderNames.IfRange);
282Headers.Set(HeaderNames.IfRange, value);
293return Headers.GetDate(HeaderNames.IfUnmodifiedSince);
297Headers.SetDate(HeaderNames.IfUnmodifiedSince, value);
308return Headers.GetDate(HeaderNames.LastModified);
312Headers.SetDate(HeaderNames.LastModified, value);
323return Headers.Get<RangeHeaderValue>(HeaderNames.Range);
327Headers.Set(HeaderNames.Range, value);
338if (Uri.TryCreate(Headers.Referer, UriKind.RelativeOrAbsolute, out var uri))
346Headers.Set(HeaderNames.Referer, value == null ? null : UriHelper.Encode(value));
360return Headers.Get<T>(name);
373return Headers.GetList<T>(name);
385Headers.Set(name, value);
398Headers.SetList<T>(name, values);
411Headers.Append(name, value.ToString());
421Headers.AppendList<T>(name, values);