Module Object.Head

type options = {
  1. preconditions : Preconditions.Read.t;
    (*

    Conditional headers for the object metadata request.

    *)
  2. version_id : Version_id.t option;
    (*

    Object version to inspect instead of the current version.

    *)
  3. checksum_mode : Checksum.Mode.t option;
    (*

    Request S3 checksum metadata in the response.

    *)
  4. source_encryption : Encryption.Source.t option;
    (*

    SSE-C source-object key headers for encrypted objects.

    *)
  5. expected_bucket_owner : Account_id.t option;
    (*

    x-amz-expected-bucket-owner.

    *)
}

HeadObject request options.

type result = Get.info

HeadObject metadata has the same shape as Get.info; no object body is returned.

val default_options : options
val options : ?preconditions:Preconditions.Read.t -> ?version_id:Version_id.t -> ?checksum_mode:Checksum.Mode.t -> ?source_encryption:Encryption.Source.t -> ?expected_bucket_owner:Account_id.t -> unit -> (options, Awskit.Error.t) Stdlib.result

Build HeadObject options.

val options_exn : ?preconditions:Preconditions.Read.t -> ?version_id:Version_id.t -> ?checksum_mode:Checksum.Mode.t -> ?source_encryption:Encryption.Source.t -> ?expected_bucket_owner:Account_id.t -> unit -> options

Like options, but raises on validation failure.