PJ Dietz
87a3c063da
Added Response::getStatusLine() function. This makes it more extensible and compatible with PHP 5.3.
2012-10-01 20:06:14 -04:00
PJ Dietz
ef31fd7292
Router can return a default 404 response when no routes match the request.
...
Add functionality to Request to carve up a URI and set the corresponding members.
2012-09-23 18:43:52 -04:00
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
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