Object.Gettype options = {range : Range.t option;Optional HTTP byte range.
*)preconditions : Preconditions.Read.t;Conditional read headers.
*)version_id : Version_id.t option;Object version to read instead of the current version.
*)checksum_mode : Checksum.Mode.t option;Request S3 checksum metadata in the response.
*)source_encryption : Encryption.Source.t option;SSE-C source-object key headers for reading encrypted objects.
*)expected_bucket_owner : Account_id.t option;x-amz-expected-bucket-owner.
}GetObject request options.
type info = {etag : Etag.t option;Object ETag returned by S3.
*)content_type : Content_type.t option;Object Content-Type response header.
content_length : int64 option;Number of response-body bytes when S3 supplied Content-Length.
content_range : Range.Content_range.t option;Parsed Content-Range response header for ranged responses.
last_modified : Ptime.t option;Last modified timestamp parsed from the response.
*)metadata : Metadata.t;User metadata parsed from x-amz-meta-* headers.
storage_class : Storage_class.t option;Storage class reported for the object, if present.
*)version_id : Version_id.t option;Version id of the returned object.
*)checksum : Checksum.response;Checksum response headers.
*)encryption : Encryption.Observed.t option;Encryption metadata reported by S3.
*)response : Awskit.Response.t;Raw response metadata.
*)}GetObject response metadata. The object body is consumed through the selected runtime and is not stored in info.
type 'a result = {value : 'a;Value returned by the response-body consumer.
*)etag : Etag.t option;Object ETag returned by S3.
*)content_type : Content_type.t option;Object Content-Type response header.
content_length : int64 option;Number of response-body bytes when S3 supplied Content-Length.
content_range : Range.Content_range.t option;Parsed Content-Range response header for ranged responses.
last_modified : Ptime.t option;Last modified timestamp parsed from the response.
*)metadata : Metadata.t;User metadata parsed from x-amz-meta-* headers.
storage_class : Storage_class.t option;Storage class reported for the object, if present.
*)version_id : Version_id.t option;Version id of the returned object.
*)checksum : Checksum.response;Checksum response headers.
*)encryption : Encryption.Observed.t option;Encryption metadata reported by S3.
*)response : Awskit.Response.t;Raw response metadata.
*)}GetObject result containing response metadata and the caller's consumed body value.
val default_options : optionsDefault GetObject options: full current object, no checksum mode, and no conditional headers.
val options :
?range:Range.t ->
?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.resultBuild GetObject options.
val options_exn :
?range:Range.t ->
?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 ->
optionsLike options, but raises on validation failure.