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. For more information, see https://www.rfc-editor.org/rfc/rfc6266#section-4.
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. For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#field.content-encoding.
public string ContentEncoding { get; set; }
Property Value
ContentLength
Size of the body in bytes. This parameter is useful when the size of the body cannot be determined automatically. For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#name-content-length.
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 contents. For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type.
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. For more information, see https://www.rfc-editor.org/rfc/rfc7234#section-5.3.
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; }