Module Opium.Context
A context holds heterogeneous value and is passed to the requests or responses.
Keys
type 'a key= 'a Rock.Context.keyThe type for keys whose lookup value is of type
'a.
Key
module Key : sig ... endMaps
type t= Rock.Context.tThe type for heterogeneous value maps.
empty
val empty : temptyis the empty map.
is_empty
val is_empty : t -> boolis_empty mistrueiffmis empty.
mem
add
singleton
rem
find
find_exn
Utilities
sexp_of_t
val sexp_of_t : t -> Sexplib0.Sexp.tsexp_of_t tconverts the requesttto an s-expression
pp_hum
val pp_hum : Stdlib.Format.formatter -> t -> unitpp_humformats the requesttas a standard HTTP request