PJ Dietz
4d0fee6dc9
Remove the uri member variable from Request and make it a pure property.
...
Add setHeader() and hasHeader() methods to Request.
2012-11-29 15:40:05 -05:00
PJ Dietz
7c76ddb010
Fix comments.
2012-11-29 14:56:04 -05:00
PJ Dietz
34ed07f4a0
Updates to Request
...
Add client-side sample
2012-11-29 14:41:32 -05:00
PJ Dietz
0052ecd455
Add custom exceptions.
2012-11-29 14:40:46 -05:00
PJ Dietz
d168265700
Updates to Request class, including adding the request() method for cURL access to resources.
2012-11-27 16:57:27 -05:00
PJ Dietz
66be033022
Beginning to work on the client-side sample.
2012-11-27 12:25:53 -05:00
PJ Dietz
e5a085ff48
Add first sample.
...
Update PPP for one method.
2012-11-26 12:45:39 -05:00
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
4c0434399a
Code cleanup.
2012-09-16 22:44:29 -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
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