package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type meth =
  1. | Get
  2. | Post
  3. | Put
  4. | Delete
  5. | Any
type t = meth * string * handler
val get : string -> handler -> t
val post : string -> handler -> t
val put : string -> handler -> t
val delete : string -> handler -> t
val any : string -> handler -> t
type router = {
  1. scope : string;
  2. routes : t list;
  3. middlewares : Opium_kernel.Rock.Middleware.t list;
}
val router : ?scope:string -> ?middlewares:Opium_kernel.Rock.Middleware.t list -> t list -> router
val prefix : string -> t -> t
val router_to_routes : router -> t list
val externalize_path : ?prefix:string -> string -> string
OCaml

Innovation. Community. Security.