package mehari

  1. Overview
  2. Docs

Parameters

Signature

module IO = RateLimiter.IO
type route
type middleware = handler -> handler
val no_middleware : middleware
val pipeline : middleware list -> middleware
val router : route list -> handler
val route : ?rate_limit:RateLimiter.t -> ?mw:middleware -> ?typ:[ `Raw | `Regex ] -> string -> handler -> route
val scope : ?rate_limit:RateLimiter.t -> ?mw:middleware -> string -> route list -> route
val no_route : route
val virtual_hosts : ?meth:[ `ByURL | `SNI ] -> (string * handler) list -> handler
OCaml

Innovation. Community. Security.