Simple_httpd.RouteSourceModule defining Routes to select which function will answer a request
Basic type-safe routing.
A route, composed of path components
Matches a string, even containing '/'. This will match the entirety of the remaining route.
comp / route matches "foo/bar/…" iff comp matches "foo", and route matches "bar/…".
exact_path "foo/bar/..." r is equivalent to exact "foo" @/ exact "bar" @/ ... @/ r *
Print the route. 0.7
This function may be called in a handler to try the next request. It must be raised after reading only the path, not the request. Your handler should look like: fun path -> if bad path then pass (); fun req -> ...