Module Restful.Convert

module Convert: sig .. end

Functions to convert QUERY_STRING parameters from strings to various other types. These functions all catch errors and convert them to Restful.Types.User_exn.


val boolean : string -> bool

Convert to a native bool. The only allowable string forms are "true" and "false".

val int : string -> int

Convert to a native int.

val int64 : string -> Stdlib.Int64.t

Convert to an Int64.t.

val float : string -> float

Convert to a float.