package ocamlapi_async

  1. Overview
  2. Docs
Path-based HTTP request routing for Ocaml

Install

Dune Dependency

Authors

Maintainers

Sources

0.0.2.tar.gz
sha256=119e706d4f5a804a13debdbf9df6e9fd9daa520e27e121b24e54c05833d5724a
md5=e1e7e9018092d9528c5ae60ef01e5246

doc/ocamlapi_async/Ocamlapi_async/index.html

Module Ocamlapi_async

include sig ... end
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
type t
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
OCaml

Innovation. Community. Security.