Commit Graph

508 Commits

Author SHA1 Message Date
PJ Dietz 5af80d8b1d Move some logic from Router to Route for easier subclassing and better OOP principles. Add comments and PHPDoc blocks. 2012-09-16 22:31:25 -04:00
PJ Dietz 37b75d69d1 Commenting and tidying. 2012-09-08 19:46:11 -04:00
PJ Dietz 44b6e9b118 Change the way Handler goes about building the response. This now happen in the constructor, and Handler::getResponse() returns the Response instance instead of using Handler::respond to trigger the response. 2012-09-08 16:56:54 -04:00
PJ Dietz 6664c73605 Added Handler, Router, and Route classes. 2012-09-03 14:02:49 -04:00
PJ Dietz 81dd2c3f1c Add Response class for building HTTP responses. 2012-08-23 15:39:12 -04:00
PJ Dietz 0c94052d78 Build Request class to provide the following items from the HTTP request:
- body
- headers
- method
- path
- query

The Request also has a static method to return a reference to a singleton instance representing the current request.
2012-08-23 14:34:15 -04:00
PJ Dietz 76cde65046 Added dummy files. 2012-08-20 21:00:25 -04:00
PJ Dietz 6a425c03d6 Initial commit 2012-08-20 17:34:37 -07:00