Spindle_http.EtagEntity tags, as RFC 9110 §8.8.3 writes them, and the two ways §8.8.3.2 compares them.
Etag.parse {|W/"xyzzy"|} = Ok { weak = true; opaque = "xyzzy" }
Etag.condition {|"a", W/"b"|} = Ok (Tags [ ...; ... ])An opaque tag may hold a comma, so a list of them is read by this grammar and never split where a comma is.
val parse : string -> (t, string) Stdlib.resultOne entity tag, and the whitespace around it.
val to_string : t -> (string, string) Stdlib.resultW/"opaque" or "opaque", as parse reads it back, or Error for an opaque tag holding a quote, a space or a control character.
Both strong, and the same opaque tag: what If-Match and If-Range ask.
What If-Match and If-None-Match hold.
val condition : string -> (condition, string) Stdlib.resultA field's value, its lines joined with commas as RFC 9110 §5.3 allows.