Class HeadersCollection
This class contains the headers for an S3 object.
public sealed class HeadersCollection
- Inheritance
-
HeadersCollection
- Inherited Members
Constructors
HeadersCollection()
public HeadersCollection()
Properties
CacheControl
Specifies caching behavior along the request/reply chain.
public string CacheControl { get; set; }
Property Value
ContentDisposition
Specifies presentational information for the object.
public string ContentDisposition { get; set; }
Property Value
ContentEncoding
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
public string ContentEncoding { get; set; }
Property Value
ContentLength
The size of the object, in bytes.
public long ContentLength { get; set; }
Property Value
ContentMD5
The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent.
public string ContentMD5 { get; set; }
Property Value
ContentType
A standard MIME type describing the format of the object data.
public string ContentType { get; set; }
Property Value
Count
Gets the count of headers.
public int Count { get; }
Property Value
Expires
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. Use ExpiresUtc instead.", false)]
public DateTime? Expires { get; set; }
Property Value
ExpiresUtc
The date and time at which the object is no longer cacheable.
public DateTime? ExpiresUtc { get; set; }
Property Value
this[string]
Gets and sets headers to set for the object.
public string this[string name] { get; set; }
Parameters
name
stringThe name of the header
Property Value
- string
The value for the header
Keys
Gets the names of the headers set.
public ICollection<string> Keys { get; }