package datakit-ci

  1. Overview
  2. Docs
type t

The state of a form upload from the user.

type field = {
  1. data : string option;
  2. error : string option;
}
val empty : t

A state with no fields.

val pop : string -> t -> field

pop field_name t returns the current value of the field and removes field_name from t. Returns an empty field record if the field isn't known.

val bindings : t -> (string * field) list

bindings t is the list of (name, field) pairs that haven't been popped.

val of_values : (string * string) list -> t

of_values vs is a state initialised with (field_name, value) pairs in vs.

OCaml

Innovation. Community. Security.