Module Object.Etag

type t

Opaque S3 ETag value. ETags are returned by S3 and can be used in conditional requests; they are not guaranteed to be a plain MD5 digest.

val of_string : string -> (t, Awskit.Error.t) Stdlib.result

Validate and wrap an ETag string. Quoted and unquoted values are accepted according to the library's ETag parser.

val of_string_exn : string -> t

Like of_string, but raises Awskit.Error.Awskit_error carrying the structured validation error on validation failure.

val to_string : t -> string

Render the normalized ETag value.

val pp : Stdlib.Format.formatter -> t -> unit

Pretty-print an ETag.

val equal : t -> t -> bool

Compare two ETags.