package ez_api
Module EzFetch_lwtSource
Source
val handle_response :
?msg:string ->
string ->
(string Ezjs_fetch_lwt.response,
< toString : Ezjs_min.js_string Ezjs_min.t Js_of_ocaml.Js.meth.. >
Js_of_ocaml.Js.t)
result ->
(string, int * string option) resultinclude sig ... end
Source
val get0 :
?post:bool ->
?headers:(string * string) list ->
?params:(EzAPI.Param.t * EzAPI.param_value) list ->
?msg:string ->
EzAPI.base_url ->
('output, 'error, [< EzAPI.Security.scheme ]) EzAPI.service0 ->
('output, 'error EzReq_lwt_S.api_error) result Lwt.tSource
val get1 :
?post:bool ->
?headers:(string * string) list ->
?params:(EzAPI.Param.t * EzAPI.param_value) list ->
?msg:string ->
EzAPI.base_url ->
('arg, 'output, 'error, [< EzAPI.Security.scheme ]) EzAPI.service1 ->
'arg ->
('output, 'error EzReq_lwt_S.api_error) result Lwt.tSource
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, [< EzAPI.Security.scheme ]) EzAPI.service2 ->
'arg1 ->
'arg2 ->
('output, 'error EzReq_lwt_S.api_error) result Lwt.tSource
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, [< EzAPI.Security.scheme ]) EzAPI.post_service0 ->
('output, 'error EzReq_lwt_S.api_error) result Lwt.tSource
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, [< EzAPI.Security.scheme ])
EzAPI.post_service1 ->
'arg ->
('output, 'error EzReq_lwt_S.api_error) result Lwt.tSource
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, [< EzAPI.Security.scheme ])
EzAPI.post_service2 ->
'arg1 ->
'arg2 ->
('output, 'error EzReq_lwt_S.api_error) result Lwt.tSource
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, [< EzAPI.Security.scheme ]) EzAPI.service ->
'arg ->
('output, 'error EzReq_lwt_S.api_error) result Lwt.tSource
val pp_error :
?error:(Format.formatter -> 'a -> unit) ->
Format.formatter ->
'a EzReq_lwt_S.api_error ->
unitSource
val get :
?meth:EzAPI.Meth.all ->
?headers:(string * string) list ->
?msg:string ->
EzAPI.url ->
(string, int * string option) result Lwt.tSource
val post :
?meth:EzAPI.Meth.all ->
?content_type:string ->
?content:string ->
?headers:(string * string) list ->
?msg:string ->
EzAPI.url ->
(string, int * string option) result Lwt.t