doc: add sections on theory/{routes,route_matching}

Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
pancho horrillo
2019-11-22 12:04:03 +01:00
parent 9aad5aa70f
commit f9867fb269
3 changed files with 137 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
Route Matching
==============
Route table
-----------
Kapow! maintains a route table as provided by the user, and uses it to determine
which handler should an incoming request be dispatched to.
Each incoming request is matched against the routes in the route table in
strict order, for each route in the route table, the criteria are checked.
If the request does not match, the next route in the route list is examined.