package ez_api

  1. Overview
  2. Docs

Module EzAPI.ServiceSource

Sourcemodule IO : sig ... end
Sourcetype ('args, 'input, 'output, 'error, 'security) t = {
  1. path : (Req.t, 'args) Path.t;
  2. input : 'input IO.io;
  3. output : 'output IO.io;
  4. errors : 'error Err.case list;
  5. meth : Meth.t;
  6. params : Param.t list;
  7. security : ([< Security.scheme ] as 'security) list;
  8. headers : Stdlib__Set.Make(String).t Stdlib__Map.Make(String).t;
}
Sourceval make : ?meth:??? -> ?params:??? -> ?security:??? -> ?errors:??? -> ?headers:??? -> input:'c IO.io -> output:'d IO.io -> (Req.t, 'e) Path.t -> ('e, 'c, 'd, 'b, 'a) t
Sourceval input : ('a, 'b, 'c, 'd, [< Security.scheme ]) t -> 'b IO.io
Sourceval output : ('a, 'b, 'c, 'd, [< Security.scheme ]) t -> 'c IO.io
Sourceval errors : ('a, 'b, 'c, 'd, [< Security.scheme ]) t -> 'd Err.case list
Sourceval errors_encoding : ('a, 'b, 'c, 'd, [< Security.scheme ]) t -> 'd Json_encoding.encoding
Sourceval meth : ('a, 'b, 'c, 'd, [< Security.scheme ]) t -> Meth.t
Sourceval path : ('a, 'b, 'c, 'd, [< Security.scheme ]) t -> (Req.t, 'a) Path.t
Sourceval security : ('a, 'b, 'c, 'd, [< Security.scheme ] as 'e) t -> 'e list
Sourceval params : ('a, 'b, 'c, 'd, [< Security.scheme ]) t -> Param.t list
Sourceval headers : ('a, 'b, 'c, 'd, [< Security.scheme ]) t -> Stdlib__Set.Make(String).t Stdlib__Map.Make(String).t
Sourceval error : ('a, 'b, 'c, 'd, [< Security.scheme ]) t -> code:int -> 'd Json_encoding.encoding option
Sourceval errors_handler : ('a, 'b, 'c, 'd, [< Security.scheme ]) t -> 'd -> int * string