Module Preconditions.Write

Conditional request records. Failed conditions are returned as structured service errors, typically PreconditionFailed or NotModified.

type t = {
  1. if_match : Etag_condition.t option;
  2. if_none_match : Etag_condition.t option;
}

Conditions for object writes.

val none : t

No write preconditions.

val if_absent : t

Require the destination key to be absent.

val if_etag : Etag.t -> t

Require the destination object to match an ETag.