Module Opium.Context
A context holds heterogeneous value and is passed to the requests or responses.
Keys
type 'a key
= 'a Rock.Context.key
The type for keys whose lookup value is of type
'a
.
Key
module Key : sig ... end
Maps
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
istrue
iffm
is empty.
mem
add
singleton
rem
find
find_exn
Utilities
sexp_of_t
val sexp_of_t : t -> Sexplib0.Sexp.t
sexp_of_t t
converts the requestt
to an s-expression
pp_hum
val pp_hum : Stdlib.Format.formatter -> t -> unit
pp_hum
formats the requestt
as a standard HTTP request