PJ Dietz
b3f997136f
Made Response->statusCode into a property and added ->reasonPhrase.
...
PhpDoc updates.
When you set the ->statusCode to a standard HTTP status code, the instance will set the reason phrase appropriately. You may also set statusCode and reasonPhrase separately, or set them at once by passing two parameters to setStatusCode();
2012-11-30 16:33:04 -05:00
PJ Dietz
7ee4ee39b9
Base Request and Response off of base class Message
2012-11-29 16:58:14 -05:00
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
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
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
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