Skip to main content
Latest
interface HeadObjectResponse
Re-export
import { type HeadObjectResponse } from "https://deno.land/x/s3@0.5.0/mod.ts";

Properties

optional
cacheControl: string

Specifies caching behavior along the request/reply chain.

optional
contentDisposition: string

Specifies presentational information for the object.

optional
contentEncoding: string

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 field.

optional
contentLanguage: string

The language the content is in.

contentLength: number

Size of the body in bytes.

optional
contentType: string

A standard MIME type describing the format of the object data.

etag: string

An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.

optional
expires: Date

The date and time at which the object is no longer cacheable.

lastModified: Date

Last modified date of the object

deleteMarker: boolean

Specifies whether the object retrieved was (true) or was not (false) a Delete Marker

optional
partsCount: number

The count of parts this object has.

missingMeta: number

This is set to the number of metadata entries not returned in x-amz-meta headers. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.

optional
legalHold: boolean

Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.

optional
lockMode: LockMode

The Object Lock mode currently in place for this object.

optional
lockRetainUntil: Date

The date and time when this object's Object Lock will expire.

optional
replicationStatus: ReplicationStatus

Amazon S3 can return this if your request involves a bucket that is either a source or destination in a replication rule.

storageClass: StorageClass

Provides storage class information of the object. Amazon S3 returns this for all objects except for S3 Standard storage class objects.

taggingCount: number

The number of tags, if any, on the object.

optional
versionId: string

Version of the object.

optional
websiteRedirectLocation: string

If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this field in the object metadata.

meta: Record<string, string>

The user-defined metadata of this object as a number of key-value pairs with the prefixed x-amz-meta- stripped from the key