bcosca/fatfree — pull request #712 by sam-at-github (2014-10-29 08:45:58+00:00)
Title: Add record of routed route to hive. Refs #692.

Now, when a route is selected in Base::run(), a record of that route is kept in the hive var 'ROUTE'. Currently routes are stored internally as a hierarchical hash for efficient look up. I also changed the code to collapse the values of the hash keys (uri,type,verb) into the route record. It could be argued its slightly space inefficient, but that is my preferred way of doing it.

Also note the route records (which are also available via 'ROUTES') are currently indexed arrays not assoc arrays which makes them a bit awkward. Solution would be to define the offsets as consts in \BASE or change the record to a hash.