SwiftCGI
SwiftCGI copied to clipboard
Design + Code the request routing system
Basic idea: a "router" will be an object (a node in a graph, to be precise) that, when its will either return an FCGIRequestHandler
itself, or delegate the request to a sub-router (if one exists). Each portion of the request will be consumed until either the path is consumed and a suitable handler is found, OR it becomes apparent that no suitable handler can be found (in which case, the 404 handler should be invoked).