ronda.routing.request

descriptor

(descriptor request)
Get the descriptor that caused the request to be routed.

endpoint

(endpoint request)
Get the endpoint data the request should be routed to.

generate-for

(generate-for request route-id)(generate-for request route-id values)
Generate map of `:path`, `:route-params`, `:query-params` based on the
RouteDescriptor stored in the given request.

href

(href request route-id)(href request route-id values)
Generate path + query string for the given route based on the RouteDescriptor
stored in the given request.

match

(match request path)(match request request-method path)
Parse the given path and create a map of `:id`, `:route-params`,
`:query-params` and `:params` based on the RouteDescriptor stored
in the given request.

path

(path request route-id)(path request route-id values)
Generate the path component for the given route based on the
RouteDescriptor stored in the given request.

routing-data

(routing-data request)
Get the routing data for the given request

set-descriptor

(set-descriptor request descriptor)
Set the descriptor the request should be routed to.

set-routing-data

(set-routing-data request data)
Set the routing data for the given request.