PJ Dietz
|
512897effd
|
Prefer apache_request_headers when reading request headers.
Apache does not pass the Authorization header through to PHP as
$_SERVER["HTTP_AUTHORIZATION"], so reading from $_SERVER is not viable
with Apache.
|
2014-07-28 12:43:29 -04:00 |
PJ Dietz
|
46f11b2b9b
|
Fix Request for PHP 5.3.0 compatibility
|
2014-07-28 10:08:27 -04:00 |
PJ Dietz
|
7d3f4442b4
|
Code style
|
2014-07-27 16:52:59 -04:00 |
PJ Dietz
|
4db7c8da7d
|
Add Request::getFormFields. Add Test for sending form-encoded request
|
2014-07-26 11:49:15 -04:00 |
PJ Dietz
|
3d1690404e
|
Add Request::setFormFields
|
2014-07-26 01:20:51 -04:00 |
PJ Dietz
|
3d44d1a3f5
|
Test sending body with Client
|
2014-07-25 23:08:27 -04:00 |
PJ Dietz
|
1a21b2b7d0
|
Add Client class
Move Request::request() to Client::request()
|
2014-07-24 20:41:32 -04:00 |
PJ Dietz
|
581c3d1351
|
Update documentation and add tests for Request
|
2014-07-13 21:39:01 -04:00 |
PJ Dietz
|
25c423e0ee
|
Simplify Request::getRequestHeaders()
|
2014-07-08 20:21:23 -04:00 |
PJ Dietz
|
aa06181e40
|
Refactor DispatcherInterface to HandlerInterface
Update file doc blocks
Code inspection
|
2014-06-29 10:43:39 -04:00 |
PJ Dietz
|
12b971dfe6
|
Add convenience methods to Router
Code cleanup and inspection
|
2014-06-28 20:12:55 -04:00 |
PJ Dietz
|
086dd62f05
|
Bugfixes from removing magic methods
|
2014-06-28 18:30:27 -04:00 |
PJ Dietz
|
a756adf933
|
Update RequestInterface to inherit from RouteableInterface
|
2013-08-25 23:05:13 -04:00 |
PJ Dietz
|
e3e98377c3
|
Track route depth on the Request, not on the Router.
This allows a Handler to use the top-level router and have the depth count match the depth for the current request, not the total.
|
2013-08-16 18:59:05 -04:00 |
PJ Dietz
|
dbd4ff96a5
|
Split response into headers and body based on the size of the headers cURL reports.
Fixes an issue with 100 Continue status codes, etc. where r\n\r\n appears within the list of headers.
|
2013-08-14 10:47:02 -04:00 |
PJ Dietz
|
fef677168e
|
Allow Request::readHttpRequest to work when apache_request_headers is not available.
|
2013-06-12 19:54:08 -04:00 |
PJ Dietz
|
8aae07660c
|
Add port to Request class. Allow user to supply cURL options. Close #2
Caller can now supply array of options for use with curl_setopt_array() when calling Request::request()
|
2013-05-26 18:32:26 -04:00 |
PJ Dietz
|
98e04ab63b
|
Define interfaces more clearly and clean up code.
|
2013-05-26 14:55:48 -04:00 |
PJ Dietz
|
ac752bb446
|
Add interfaces for requests and responses
|
2013-05-23 20:26:32 -04:00 |
PJ Dietz
|
47ec8f5f96
|
Code cleanup and refactoring
|
2013-05-19 12:59:57 -04:00 |
PJ Dietz
|
9863bee7f5
|
Set headers and headerLookup arrays in Message::__constructor to prevent warning
|
2013-03-29 13:53:51 -04:00 |
PJ Dietz
|
972f8e9c26
|
Update Request and Response
Add constructor for Request to provide URI and method on instantiation.
Add success property and getSuccess() method Response.
Closes #1
|
2013-03-26 21:05:36 -04:00 |
PJ Dietz
|
d0ef6a62fb
|
Updates to documentation for better documentation generation
Refactored WellrestedException to WellRESTedException
|
2013-01-29 20:59:55 -05:00 |
PJ Dietz
|
4285636088
|
Merge branch 'master' of git://github.com/pjdietz/WellRESTed
Conflicts:
src/pjdietz/WellRESTed/Message.php
|
2013-01-28 22:24:54 -05:00 |
PJ Dietz
|
e419aaba7d
|
Add page-level doc blocks to each script
Update comments
Update magic accessors
Update accessor and add islet and unset methods
|
2013-01-28 22:15:33 -05:00 |
PJ Dietz
|
1bad8e35a0
|
Send headers when making a request.
Add headerLines property to Message
Remove invalid default value for protocol in Response
|
2013-01-28 15:53:18 -05:00 |
PJ Dietz
|
a44c98efb3
|
Fix error in Request.php where wrong namespace was used for Exceptions
Remove sample APi
|
2013-01-27 18:07:07 -05:00 |
PJ Dietz
|
8597b9be06
|
Refactor for better PSR compliance. Still need to finish with samples.
|
2013-01-24 21:27:57 -05:00 |
PJ Dietz
|
331bdae7ec
|
Refactor library files into src/pjdietz/WellRESTed
|
2013-01-10 20:54:22 -05:00 |