package ez_api

  1. Overview
  2. Docs
type 'a api_error = 'a EzReq_lwt_S.api_error =
  1. | KnownError of {
    1. code : int;
    2. error : 'a;
    }
  2. | UnknownError of {
    1. code : int;
    2. msg : string option;
    }
type ('output, 'error) api_result = ('output, 'error) EzReq_lwt_S.api_result
val handle_error : ('a -> string option) -> 'a api_error -> int * string option
val string_of_error : ('a -> string option) -> 'a api_error -> string
val request_reply_hook : (unit -> unit) Stdlib.ref
module type S = EzReq_lwt_S.S
module type Interface = EzReq_lwt_S.Interface
module ANY : S
module Make (_ : Interface) : S
OCaml

Innovation. Community. Security.