Hi Artyom,
I looked over the code of the url_dispatcher - and i have a question:
why you are not joining together the the different dispatchers from the
application hierarchy so that at run time each request will pass only a
single dispatcher (meaning a single regex match and then go directly to its
app - or even better directly into its function)
i understand that this will mean a harder work on the mount logic (you will
need to join in the regex from the different levels) but mounting and
unmounting is usually done only when the app loads - not while it serves
client requests.
the one drawback of my proposed approach is that if i want something done
for a specific branch of the site (like blocking access) - it will need to
be done using inheritance and/or function calls rather then placing the
logic at the correct place in the cppcms app hierarchy.
lee
PS: there is another drawback - existing apps that depends on this behavior
will break if you change it.
--
--
lee
Lee Elenbaas
lee...@gm...
|