package opium
OCaml web framework
Install
dune-project
Dependency
Authors
Maintainers
Sources
opium-0.20.0.tbz
sha256=326b91866de90baf535f8b7d4b2ff23e39d952e573c04b3c13f1054b59ff2fb6
sha512=59b83e7c8fe5f7ae328fb7f2343fe5b8fb735e8f6ee263cfd6c75bb179688ef7cf2b4586b35a2231ed3f3c1ada543021b7a4759326ae095eb77a5f38b9fa3a8a
doc/opium/Opium/Context/index.html
Module Opium.Context
Source
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
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
is true
iff m
is empty.
mem
add
singleton
rem
find
find_exn
Utilities
sexp_of_t
pp_hum
pp_hum
formats the request t
as a standard HTTP request