package vif

  1. Overview
  2. Docs

Module Vif_core.MiddlewareSource

Sourcemodule Key : sig ... end
Sourcemodule Hmap : sig ... end
Sourcetype ('socket, 'cfg, 'v) fn = 'socket Vif_core__.Vif_request0.t -> string -> Vif_core__.Vif_server.t -> 'cfg -> 'v option
Sourcetype ('socket, 'cfg, 'v) t =
  1. | Middleware : ('socket, 'cfg, 'v) fn * 'v Hmap.key -> ('socket, 'cfg, 'v) t
Sourcetype ('socket, 'cfg) m =
  1. | [] : ('socket, 'cfg) m
  2. | :: : ('socket, 'cfg, 'a) t * ('socket, 'cfg) m -> ('socket, 'cfg) m
Sourcetype ('socket, 'value, 'a, 'c) ctx = {
  1. server : Vif_core__.Vif_server.t;
  2. req0 : 'socket Vif_core__.Vif_request0.t;
  3. target : string;
  4. user's_value : 'value;
}
Sourceval v : 'v. name:string -> ('socket, 'cfg, 'v) fn -> ('socket, 'cfg, 'v) t
Sourceval run : 'v. ('socket, 'v) m -> ('socket, 'v, 'a, 'c) ctx -> Hmap.t -> Hmap.t