Page
Library
Module
Module type
Parameter
Class
Class type
Source
WtrSource('a, 'b) uri represents a URI - both the path and query, e.g. /home/about/, /home/contact, /home/contact?name=a&no=123 etc.
A uri is created via usage of wtr.ppx.
pp_uri fmt uri pretty prints uri on to fmt.
'c route is a uri and its handler. 'c represents the value returned by the handler.
p >- route_handler creates a route from uri p and route_handler.
'a t represents a Trie based router.
match t uri matches a route to uri, executes its handler and returns the computed value. None is returned if uri is not matched.
Represents a uri component decoder, such as :int, :float, :bool etc.
All user defined decoders conform to the module signature decoder.