Http.VersionVersions.
The type for HTTP versions. Both integers must be in the interval [0;9].
val v11 : tv11 is (1, 1).
val v20 : tv20 is (2, 0).
val v30 : tv30 is (3, 0).
val decode : string -> (t, string) Stdlib.resultdecode s decodes a version from s. Single digit versions are also parsed, some serializations (e.g. the curl tool) do that.
val encode : t -> stringencode v encodes the version v. Assumes correct integer ranges.
val pp : Stdlib.Format.formatter -> t -> unitpp formats versions for inspection.