ResponseHeaders Class¶
- Namespace
Microsoft.AspNetCore.Http.Headers
- Assemblies
- Microsoft.AspNetCore.Http.Extensions
Constructors¶
-
ResponseHeaders
(Microsoft.AspNetCore.Http.IHeaderDictionary)¶ public ResponseHeaders(IHeaderDictionary headers)
-
Methods¶
-
Append
(System.String, System.Object)¶ public void Append(string name, object value)
-
AppendList<T>
(System.String, System.Collections.Generic.IList<T>)¶ public void AppendList<T>(string name, IList<T> values)
-
GetList<T>
(System.String)¶ Return type: System.Collections.Generic.IList<T> public IList<T> GetList<T>(string name)
-
Get<T>
(System.String)¶ Return type: T public T Get<T>(string name)
-
Set
(System.String, System.Object)¶ public void Set(string name, object value)
-
SetList<T>
(System.String, System.Collections.Generic.IList<T>)¶ public void SetList<T>(string name, IList<T> values)
-
Properties¶
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
CacheControl
¶ Return type: Microsoft.Net.Http.Headers.CacheControlHeaderValue public CacheControlHeaderValue CacheControl { get; set; }
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
ContentDisposition
¶ Return type: Microsoft.Net.Http.Headers.ContentDispositionHeaderValue public ContentDispositionHeaderValue ContentDisposition { get; set; }
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
ContentLength
¶ Return type: System.Nullable<System.Int64> public long ? ContentLength { get; set; }
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
ContentRange
¶ Return type: Microsoft.Net.Http.Headers.ContentRangeHeaderValue public ContentRangeHeaderValue ContentRange { get; set; }
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
ContentType
¶ Return type: Microsoft.Net.Http.Headers.MediaTypeHeaderValue public MediaTypeHeaderValue ContentType { get; set; }
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
Date
¶ Return type: System.Nullable<System.DateTimeOffset> public DateTimeOffset? Date { get; set; }
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
ETag
¶ Return type: Microsoft.Net.Http.Headers.EntityTagHeaderValue public EntityTagHeaderValue ETag { get; set; }
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
Expires
¶ Return type: System.Nullable<System.DateTimeOffset> public DateTimeOffset? Expires { get; set; }
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
Headers
¶ Return type: Microsoft.AspNetCore.Http.IHeaderDictionary public IHeaderDictionary Headers { get; }
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
LastModified
¶ Return type: System.Nullable<System.DateTimeOffset> public DateTimeOffset? LastModified { get; set; }
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
Location
¶ Return type: System.Uri public Uri Location { get; set; }
-
Microsoft.AspNetCore.Http.Headers.ResponseHeaders.
SetCookie
¶ Return type: System.Collections.Generic.IList<Microsoft.Net.Http.Headers.SetCookieHeaderValue> public IList<SetCookieHeaderValue> SetCookie { get; set; }
-