Module EzAPIServerUtils.DirectorySource
Sourceand _ registered_service = | Http : {service : ('a, 'i, 'o, 'e, 's) EzAPI.Service.t;handler : 'a -> 'i -> ('o, 'e) result Answer.t Lwt.t;
} -> 'a registered_service| Websocket : {service : ('a, 'i, 'o, 'e, 's) EzAPI.Service.t;react : 'a -> 'i -> ('o, 'e) result Lwt.t;bg : 'a -> (('o, 'e) result -> unit) -> unit Lwt.t;onclose : ('a -> unit Lwt.t) option;step : float option;
} -> 'a registered_service
Sourcetype lookup_error = [ | `Not_found| `Cannot_parse of EzAPI.Arg.descr * string * string list| `Method_not_allowed
] Sourcetype ws_frame = [ | `binary of string| `text of string| `none
] Sourceval io_to_answer :
'a. code:int ->
headers:(string * string) list ->
'a EzAPI.io ->
'a ->
string Answer.t Sourceval ser_websocket :
('a -> 'b -> ('c, 'd) result Lwt.t) ->
('a -> (('c, 'd) result -> 'e) -> 'f) ->
'a ->
'b EzAPI.IO.io ->
'c EzAPI.io ->
'd Json_encoding.encoding ->
(string ->
(ws_frame,
[> `destruct_exn of exn | `handler_error of string | `handler_exn of exn ])
result
Lwt.t)
* (((ws_frame, [> `handler_error of string ]) result -> 'e) ->
'f)