Dal_node.MockupThis module provides a mock HTTP server for selected RPCs. It responds to registered routes with mock data and fails all other requests. It is similar with the Proxy module.
Represents a possible response from a mocked-up route.
Creates a route for the mockup, containing a path_pattern pattern and a callback. The callback is provided with the path actually matched and is used to retrieve the DAL node answer for the given path.
val run : t -> port:int -> unitStarts the mockup server.
val stop : t -> unitStops the mockup server.