package ez_api
Easy API library and tools
Install
Dune Dependency
github.com
Readme
LGPL-2.1-only WITH OCaml-LGPL-linking-exception License
Edit opam file
Versions (6)
Authors
Maintainers
Sources
v1.0.0.tar.gz
md5=d4dcb8a0be9cf87fca6471cecf083d9a
sha512=452a5de00bf0b51926d9c4c5c9062981c372ebce9ccfd0586b1e1b9b42c96721035dc7cd405e4bdd936ae0a7e69f442e4063713756b7cdac246319198fb89e2c
doc/ez_api.server_utils/EzAPIServerUtils/index.html
Module EzAPIServerUtils
Source
Server
Utils
Register Handler
Source
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, Directory.Step.t list * Directory.conflict) result
Source
val 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:('a -> unit Lwt.t) ->
?step:float ->
Directory.t ->
(Directory.t, Directory.Step.t list * Directory.conflict) result
Source
val 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.t
Source
val register_ws :
('a, 'b, 'c, 'd, [< EzAPI.Security.scheme ] as 'e) EzAPI.service ->
?onclose:('a -> unit Lwt.t) ->
?step:float ->
react:('a -> 'e list -> 'b -> ('c, 'd) result Lwt.t) ->
bg:('a -> 'e list -> (('c, 'd) result -> unit) -> unit Lwt.t) ->
Directory.t ->
Directory.t
Source
val handle :
?meth:
[< `DELETE | `GET | `HEAD | `OPTIONS | `PATCH | `POST | `PUT GET OPTIONS ] ->
?content_type:string ->
?ws:
(?onclose:(unit -> unit Lwt.t) ->
?step:float ->
react:
(string -> (Directory.ws_frame, Directory.handler_error) result Lwt.t) ->
bg:
(((Directory.ws_frame, Directory.handler_error) result -> unit) ->
unit Lwt.t) ->
Uuidm.t ->
'a Lwt.t) ->
server_kind ->
Req.t ->
string list ->
string ->
[> `http of string Answer.t | `ws of 'a ] Lwt.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>