package ocamlapi_lwt_unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include sig ... end
type callback = ?vars:string Core.String.Table.t -> Cohttp_lwt_unix.Request.t -> Cohttp_lwt.Body.t -> (Cohttp_lwt_unix.Response.t * Cohttp_lwt.Body.t) Cohttp_lwt_unix.IO.t
type exn_handler = ?vars:string Core.String.Table.t -> exn -> (Cohttp_lwt_unix.Response.t * Cohttp_lwt.Body.t) Cohttp_lwt_unix.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 = Ocamlapi__Router_trie.Make(Cohttp_lwt_unix.Request)(Cohttp_lwt.Body)(Cohttp_lwt_unix.Response)(Cohttp_lwt_unix.IO).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
val dispatch : t -> Cohttp_lwt_unix.Request.t -> Cohttp_lwt.Body.t -> (Cohttp_lwt_unix.Response.t * Cohttp_lwt.Body.t) Cohttp_lwt_unix.IO.t
OCaml

Innovation. Community. Security.