package ez_api
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Easy API library and tools
Install
dune-project
Dependency
github.com
Readme
Changelog
LGPL-2.1-only WITH OCaml-LGPL-linking-exception License
Edit opam file
Versions (8)
Authors
Maintainers
Sources
1.2.0.tar.gz
md5=55bb40d00db6cd35cbf6ef6cff63363a
sha512=16922b231f19615ca7179a3c7d31e8c3897f2b37f574f69e06b35f12b501434c6eb85bec91cfed16ffd3eec71f8859d94bd003044a848560d434e04a0b1e99e2
doc/ez_api.server/EzAPIServer/index.html
Module EzAPIServerSource
include module type of struct include EzServer end
val server :
?catch:(string -> exn -> string EzAPIServerUtils.Answer.t Lwt.t) ->
(int * EzAPIServerUtils.server_kind) list ->
unit Lwt.tinclude module type of struct include EzAPIServerUtils end
Server
Source
type server_kind = EzAPIServerUtils.server_kind = | API of Directory.t| Root of string * string option
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 EzAPIServerUtils.Answer.t Lwt.t) ->
Directory.t ->
(Directory.t, Directory.Step.t list * Directory.conflict) resultSource
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:??? ->
?step:??? ->
Directory.t ->
(Directory.t, Directory.Step.t list * Directory.conflict) resultSource
val register :
('a, 'b, 'c, 'd, [< EzAPI.Security.scheme ] as 'e) EzAPI.service ->
('a -> 'e list -> 'b -> ('c, 'd) result EzAPIServerUtils.Answer.t Lwt.t) ->
Directory.t ->
Directory.tSource
val 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.tSource
val handle :
?meth:??? ->
?content_type:??? ->
?ws:??? ->
server_kind ->
Req.t ->
string list ->
string ->
[> `http of string EzAPIServerUtils.Answer.t | `ws of 'a ] Lwt.t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>