Madge.RouteAbstract type of a route. The type arguments are (1) the function type corresponding to the route, (2) the return value of that function type, (3) the return value from the route. For instance, if the route corresponds to a function int -> float -> bool, then it will be a (int -> float -> 'w, 'w, bool) route.
For instance: literal "api" @@ variable (module SString) @@ query "threshold" (module JFloat) @@ get (module JInt).
Takes a route and prefixes it by a component that is a constant string literal.
val void : unit -> ('w, 'w, Nes.Void.t) tRoute that returns nothing usable for Madge. This is useful in particular for routes that only serve to resolve to a URI, or routes that return a document.
val get :
(module Madge__.Serialisation.JSONABLE with type t = 'r) ->
('w, 'w, 'r) tval post :
(module Madge__.Serialisation.JSONABLE with type t = 'r) ->
('w, 'w, 'r) tval head :
(module Madge__.Serialisation.JSONABLE with type t = 'r) ->
('w, 'w, 'r) tval delete :
(module Madge__.Serialisation.JSONABLE with type t = 'r) ->
('w, 'w, 'r) tval patch :
(module Madge__.Serialisation.JSONABLE with type t = 'r) ->
('w, 'w, 'r) tval put :
(module Madge__.Serialisation.JSONABLE with type t = 'r) ->
('w, 'w, 'r) tval options :
(module Madge__.Serialisation.JSONABLE with type t = 'r) ->
('w, 'w, 'r) tval trace :
(module Madge__.Serialisation.JSONABLE with type t = 'r) ->
('w, 'w, 'r) tval connect :
(module Madge__.Serialisation.JSONABLE with type t = 'r) ->
('w, 'w, 'r) tBasic routes matching on the method and returning a value.