Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
A context holds heterogeneous value and is passed to the requests or responses.
type 'a key = 'a Rock.Context.key
The type for keys whose lookup value is of type 'a
.
Key
module Key : sig ... end
type t = Rock.Context.t
The type for heterogeneous value maps.
empty
val empty : t
empty
is the empty map.
is_empty
val is_empty : t -> bool
is_empty m
is true
iff m
is empty.
mem
add
singleton
rem
find
find_exn
sexp_of_t
val sexp_of_t : t -> Sexplib0.Sexp.t
sexp_of_t t
converts the request t
to an s-expression
pp_hum
val pp_hum : Format.formatter -> t -> unit
pp_hum
formats the request t
as a standard HTTP request