EzAPIServerSourceinclude module type of struct include EzServer endval server :
?catch:(string -> exn -> string EzAPIServerUtils.Answer.t Lwt.t) ->
?allow_origin:EzAPIServerUtils.Cors.allow_kind ->
?footer:string ->
?addr:string ->
(int * EzAPIServerUtils.server_kind) list ->
unit Lwt.tval shutdown : unit -> unit Lwt.tinclude module type of struct include EzAPIServerUtils endmodule Timings = EzAPIServerUtils.Timingsmodule Answer = EzAPIServerUtils.Answermodule Req = EzAPIServerUtils.Reqmodule GMTime = EzAPIServerUtils.GMTimemodule Ip = EzAPIServerUtils.Ipmodule Cors = EzAPIServerUtils.CorsServer
type server_kind = EzAPIServerUtils.server_kind = | API of Directory.t| Root of string * string optionUtils
Register Handler
val register_res :
('a, 'b, 'c, 'd, [< EzAPI.Security.scheme ] as 'e) EzAPI.service ->
('a -> 'e list -> 'b -> ('c, 'd) result Answer.t Lwt.t) ->
Directory.t ->
(Directory.t, Dir_types.Step.t list * Dir_types.conflict) resultval register_ws_res :
('a, 'b, 'c, 'd, [< EzAPI.Security.scheme ] as 'e) EzAPI.service ->
react:('a -> 'e list -> 'b -> ('c, 'd) result Lwt.t) ->
bg:('a -> 'e list -> (('c, 'd) result -> unit) -> unit Lwt.t) ->
?onclose:??? ->
?step:??? ->
Directory.t ->
(Directory.t, Dir_types.Step.t list * Dir_types.conflict) resultval register :
('a, 'b, 'c, 'd, [< EzAPI.Security.scheme ] as 'e) EzAPI.service ->
('a -> 'e list -> 'b -> ('c, 'd) result Answer.t Lwt.t) ->
Directory.t ->
Directory.tval register_ws :
('a, 'b, 'c, 'd, [< EzAPI.Security.scheme ] as 'e) EzAPI.service ->
?onclose:??? ->
?step:??? ->
react:('a -> 'e list -> 'b -> ('c, 'd) result Lwt.t) ->
bg:('a -> 'e list -> (('c, 'd) result -> unit) -> unit Lwt.t) ->
Directory.t ->
Directory.tval handle :
?meth:??? ->
?content_type:??? ->
?ws:??? ->
?allow_origin:??? ->
file:
(?meth:??? ->
?default:??? ->
string ->
string list ->
string Answer.t Lwt.t) ->
printf:
((string -> string -> unit Lwt.t, Format.formatter, unit, unit Lwt.t)
format4 ->
string ->
string ->
unit Lwt.t) ->
server_kind ->
Req.t ->
string list ->
string ->
[> `http of string Answer.t | `ws of 'b ] Lwt.t