Make.IOval return : 'a -> 'a tInteractions may raise exceptions:
val fail : exn -> 'a tcatch f handle runs f () and, if it raises an exception e such that handle e returns Some k, continues with k. Otherwise the exception propagates untouched.
protect ~finally f runs f (), then finally () whether f succeeded, raised an exception or was cancelled. If finally raises, its exception replaces the one from f.
The following HTTP methods are required:
val get : string -> string tget url returns the body of the response.
val post : string -> string -> string tpost url body returns the body of the response. The Content-Type header should be application/json.
val delete : string -> string tdelete url returns the body of the response.