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 (6)
Authors
Maintainers
Sources
1.1.1.tar.gz
md5=65d5fef737c82120d579d10a1727b8e4
sha512=2ea5c072d5a4c264263264cfd485eadae2bd7f47949dbc9cb4cf93db89640d91542463ed8b9f4d6679f21bbd1efbfa6c224ff36f1807a8d8af9d0568cf8a4292
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
module StringMap = EzAPIServerUtils.StringMapmodule Timings = EzAPIServerUtils.Timingsmodule Directory = EzAPIServerUtils.Directorymodule Answer = EzAPIServerUtils.Answermodule Req = EzAPIServerUtils.Reqmodule File = EzAPIServerUtils.Filemodule GMTime = EzAPIServerUtils.GMTimemodule Ip = EzAPIServerUtils.IpServer
type server_kind = EzAPIServerUtils.server_kind = | API of Directory.t| Root of string * string option
Utils
val return :
?code:int ->
?headers:(string * string) list ->
'a ->
'a Answer.t Lwt.tval verbose : int refval debug : ?v:int -> ('a, unit, string, unit) format4 -> 'aRegister Handler
val empty : 'a Directory.directoryval 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) 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:('a -> unit Lwt.t) ->
?step:float ->
Directory.t ->
(Directory.t, Directory.Step.t list * Directory.conflict) resultexception Conflict of Directory.Step.t list * Directory.conflictval 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.tval 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.tmodule Legacy = EzAPIServerUtils.Legacyval 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 EzAPIServerUtils.Answer.t | `ws of 'a ] Lwt.t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>