Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added IHttpRouter interface #177
I've been implementing my own router class recently, and I've felt the need for an interface for Http Routers in two ways:
This pull request adds a IHttpRouter interface that implements all of the convenience functions from UrlRouter and also modifies UrlRouter slightly to implement IHttpRouter (I changed the return value of match from void to IHttpRouter).
I have 2 different routers. One which uses regex based parsing with named subgroups for parameter selection a la django (this relies on a patch to phobos that has yet to be merged) and another that allows the exposing of another router on a subpath i.e.