package ez_api

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type ('arg, 'input, 'output, 'error, 'security) service = (unit, 'arg, 'input, 'output) EzAPI.Legacy.service
type ('output, 'error, 'security) service0 = 'output EzAPI.Legacy.service0
type ('arg, 'output, 'error, 'security) service1 = ('arg, 'output) EzAPI.Legacy.service1
type ('arg1, 'arg2, 'output, 'error, 'security) service2 = ('arg1, 'arg2, 'output) EzAPI.Legacy.service2
type ('input, 'output, 'error, 'security) post_service0 = ('input, 'output) EzAPI.Legacy.post_service0
type ('arg, 'input, 'output, 'error, 'security) post_service1 = ('arg, 'input, 'output) EzAPI.Legacy.post_service1
type ('arg1, 'arg2, 'input, 'output, 'error, 'security) post_service2 = ('arg1, 'arg2, 'input, 'output) EzAPI.Legacy.post_service2
type _ api_error = int * string option
val get0 : ?post:bool -> ?headers:(string * string) list -> ?params:(EzAPI.Param.t * EzAPI.param_value) list -> ?msg:string -> EzAPI.base_url -> ('output, 'error, 'security) service0 -> ('output, 'error api_error) Stdlib.result Lwt.t
val get1 : ?post:bool -> ?headers:(string * string) list -> ?params:(EzAPI.Param.t * EzAPI.param_value) list -> ?msg:string -> EzAPI.base_url -> ('arg, 'output, 'error, 'security) service1 -> 'arg -> ('output, 'error api_error) Stdlib.result Lwt.t
val get2 : ?post:bool -> ?headers:(string * string) list -> ?params:(EzAPI.Param.t * EzAPI.param_value) list -> ?msg:string -> EzAPI.base_url -> ('arg1, 'arg2, 'output, 'error, 'security) service2 -> 'arg1 -> 'arg2 -> ('output, 'error api_error) Stdlib.result Lwt.t
val post0 : ?headers:(string * string) list -> ?params:(EzAPI.Param.t * EzAPI.param_value) list -> ?msg:string -> ?url_encode:bool -> input:'input -> EzAPI.base_url -> ('input, 'output, 'error, 'security) post_service0 -> ('output, 'error api_error) Stdlib.result Lwt.t
val post1 : ?headers:(string * string) list -> ?params:(EzAPI.Param.t * EzAPI.param_value) list -> ?msg:string -> ?url_encode:bool -> input:'input -> EzAPI.base_url -> ('arg, 'input, 'output, 'error, 'security) post_service1 -> 'arg -> ('output, 'error api_error) Stdlib.result Lwt.t
val post2 : ?headers:(string * string) list -> ?params:(EzAPI.Param.t * EzAPI.param_value) list -> ?msg:string -> ?url_encode:bool -> input:'input -> EzAPI.base_url -> ('arg1, 'arg2, 'input, 'output, 'error, 'security) post_service2 -> 'arg1 -> 'arg2 -> ('output, 'error api_error) Stdlib.result Lwt.t
val request : ?headers:(string * string) list -> ?params:(EzAPI.Param.t * EzAPI.param_value) list -> ?msg:string -> ?post:bool -> ?url_encode:bool -> input:'input -> EzAPI.base_url -> ('arg, 'input, 'output, 'error, 'security) service -> 'arg -> ('output, 'error api_error) Stdlib.result Lwt.t
val handle_error : ('a -> string option) -> 'a api_error -> int * string option
val string_of_error : ('a -> string option) -> 'a api_error -> string
OCaml

Innovation. Community. Security.