Module Ocamlapi_async

include sig ... end
type callback = ?⁠vars:string Core.String.Table.t ‑> Cohttp_async.Request.t ‑> Cohttp_async.Body.t ‑> (Cohttp_async.Response.t * Cohttp_async.Body.t) Cohttp_async.Io.t
type exn_handler = ?⁠vars:string Core.String.Table.t ‑> exn ‑> (Cohttp_async.Response.t * Cohttp_async.Body.t) Cohttp_async.Io.t
type route = string * (Cohttp.Code.meth * callback) list
module type Routes : sig ... end
val default_exn_handler : exn_handler
val default_fallback : callback
val create : ?⁠exn_handler:exn_handler ‑> ?⁠fallback_response:callback ‑> route list ‑> (t, exn) Core.Result.t
val create_exn : ?⁠exn_handler:exn_handler ‑> ?⁠fallback_response:callback ‑> route list ‑> t
val create_from_modules : ?⁠exn_handler:exn_handler ‑> ?⁠fallback_response:callback ‑> (module Routes) list ‑> (t, exn) Core.Result.t
val create_from_modules_exn : ?⁠exn_handler:exn_handler ‑> ?⁠fallback_response:callback ‑> (module Routes) list ‑> t
val dispatch : t ‑> Cohttp_async.Request.t ‑> Cohttp_async.Body.t ‑> (Cohttp_async.Response.t * Cohttp_async.Body.t) Cohttp_async.Io.t