SwiftCGI icon indicating copy to clipboard operation
SwiftCGI copied to clipboard

Design + Code the request routing system

Open ianthetechie opened this issue 10 years ago • 0 comments

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).

ianthetechie avatar Jan 27 '15 05:01 ianthetechie