Michael Dowling
fb039fec6e
Adding test to ensure events are proxied
2013-04-16 13:30:26 -07:00
Michael Dowling
ebad28f026
Removing all the popsicle sticks from sending requests with curl_multi
2013-04-16 02:43:07 -07:00
Michael Dowling
69e3f83717
Fixing how names are added to models. Closes #298
2013-04-15 13:42:27 -07:00
Michael Dowling
e64ff8e8bc
Adding support for CurlFile in PHP 5.5. Closes #296 .
2013-04-13 19:52:36 -07:00
Michael Dowling
5e9b3bfdef
Trying to ucfirst a command when using the service description command factory
2013-04-13 19:24:12 -07:00
Michael Dowling
99c8f279cf
Fixing how errors are aggregated when sending multi transfers. Adding isRedirect() flag to requests.
2013-04-10 16:18:24 -07:00
Michael Dowling
5378566588
Fixing ReadLimitEntityBody::__toString() when the wrapped body is empty
2013-04-08 15:59:52 -07:00
Michael Dowling
de755baecc
Making the default CURLOPT_CONNECTTIMEOUT more forgiving and closer to the default value of 300s
2013-04-08 13:46:42 -07:00
Michael Dowling
cdb1da7d1a
Properly merging URLs and removing dot segments based on RFC 3986 section 5.4. Closes #288 and #289 .
2013-04-08 13:05:09 -07:00
Michael Dowling
6f044c5c7e
Using the Content-Type of the EntityBody if one cannot be determined by the request path
2013-04-06 17:50:51 -07:00
Michael Dowling
863998bbdb
Auto-detecting Content-Type of a request
...
- A Content-Type header will be added to a request automatically based
on the path of the request if a Content-Type header was not
specifically set. Pass `false` to the second parameter of
EntityEnclosingRequest::setBody() to not auto-detect a value.
- Removing default return value of application/octet-stream from
EntityBody::getContentType()
2013-04-06 17:36:57 -07:00
Michael Dowling
8ecb04187f
Adding more connection timeout checks
2013-04-05 10:51:51 -07:00
Michael Dowling
176d928fe4
Renaming additionalProperties to additionalParameters
2013-04-03 13:23:46 -07:00
Michael Dowling
31ccefd2f2
Adding support for additionalProperties for parameters in service descriptions. Addresses #270
2013-04-03 13:23:46 -07:00
Michael Dowling
cfd7f672e8
Improving the CachingEntityBody
...
Fixing the stream size of a caching entity body to allow the size to be
the greater of the buffer or remote stream.
Fixing __toString() to properly combine the buffer and remote stream
Skipping bytes written over the remote stream to emulate how other r/w
PHP streams work (you overwrite bytes, you don't insert bytes and push
out things after it).
Using fstat() for local streams rather than loading streams into memory
and getting the strlen() (previously used for temp streams).
2013-04-03 10:24:33 -07:00
Michael Dowling
1e0a4c1b3e
Adding tests and fixes to the CachingEntityBody decorator
2013-04-02 12:35:09 -07:00
Michael Dowling
c94eaa8f0c
Adding a caching entity body decorator and cleaning up other entity body decorators
2013-04-01 18:22:26 -07:00
Michael Dowling
a59e5a1695
Adding cacert file to phar and more cert validation
...
Addresses #280 .
2013-03-31 23:35:10 -07:00
Michael Dowling
ab8d35fbdf
Adding the ability to PURGE requests from the cache. Addresses #241 .
2013-03-30 19:18:40 -07:00
Michael Dowling
9da0ac2123
You can now send any EntityEnclosingRequest with POST fields or POST
...
files and cURL will handle creating bodies
* Lots of cleanup to CurlHandle::factory and RequestFactory::createRequest
* POST requests using a custom entity body are now treated exactly like PUT
requests but with a custom cURL method. This means that the redirect
behavior of POST requests with custom bodies will not be the same as POST
requests that use POST fields or files (the latter is only used when
emulating a form POST in the browser).
* Closes #266
2013-03-28 23:48:55 -07:00
Michael Dowling
4f818c90b2
Adding the ability to create a custom stream class from a stream factory
2013-03-28 12:13:56 -07:00
Jeremy Lindblom
be121121c0
Adding ability to overwrite config params for throw-away clients in the service builder
2013-03-27 12:49:14 -07:00
Brad Feehan
dedaa4c428
Improve "[PARAM] is a required [TYPE]" message
...
This happens when Guzzle is trying to create an error message of the
form "ID is a required integer", but the type is an array (union) of
types rather than a single type in a string.
In PHP 5.4, this causes a notice "array to string conversion", and in
all versions of PHP, the message Guzzle generated reads "ID is a
required Array" (where "Array" is the result of the array-to-string
conversion, almost always not what you want).
2013-03-25 15:23:23 +11:00
David Abdemoulaie
b10a01833e
Adds PSR-3 Log adapter
2013-03-20 11:53:25 -05:00
Gonzalo Ayuso
cd81153711
removed empty parameters form query string in OauthPlugin
2013-03-17 17:37:49 +01:00
Michael Dowling
feaae5dc97
Adding number types to service description schemas. Closes #265 .
2013-03-15 13:26:03 -07:00
Michael Dowling
f2fd4bd43b
Better normalization of User-Agent header when creating requests. Closes #264
2013-03-11 15:42:27 -07:00
Nils Luxton
a29ab1eb32
Single PHP-style array values now parse into array.
2013-03-11 14:20:20 +00:00
Michael Dowling
9c395855b4
Fixing unit tests
2013-03-09 20:14:16 -08:00
Michael Dowling
5075b8271b
Allow the passing of a pre-created context. Cleaning up interfaces. Adding tests.
2013-03-09 20:14:16 -08:00
Michael Dowling
624ead32fb
Preventing infinite recursion when resolving includes. Closes #255
2013-03-06 23:39:08 -08:00
Michael Dowling
d7b9d3cd3a
Using union rather than merge when extending operations and adding tests. This has no effect other than speed improvements because when merging arrays where the key is a string, the last value overwrites the previous. However, this may fix edge cases where someone is defining arrays in their models for some reason.
2013-03-06 23:11:41 -08:00
Michael Dowling
2f4d017aee
Not adding default empty arrays or booleans when parsing XML that is not set. Now more consistent with the request JsonVisitor and API responses can more likely be reused as inputs.
2013-03-06 22:45:25 -08:00
Michael Dowling
e03795e5a6
Adding the ability to serialize and XML payload even if no XML parameters were set.
2013-03-06 22:24:42 -08:00
Jonathan Hedstrom
bc183dccd4
Sorting all parameters prior to OAuth signing.
2013-03-06 08:45:51 -08:00
Jonathan Hedstrom
8711d3f829
Adding a test for multi-dimensional arrays.
2013-03-05 17:11:05 -08:00
Michael Dowling
62f3458277
Adding missing param filtering when visiting response headers
2013-03-03 22:35:49 -08:00
Michael Dowling
ea77655a11
Adding an ErrorResponse plugin that can throw specific exceptions based on a service description
2013-03-03 13:25:16 -08:00
Michael Dowling
a2ee43c186
Adding support in Guzzle to instantiate custom responseType="class"
...
responseClass objects by implementing ResponseClassInterface.
Closes #248 .
2013-03-03 11:55:58 -08:00
Michael Dowling
c5c24ae1a3
Adding support for additionalProperties in response models
2013-03-02 23:18:11 -08:00
thewilkybarkid
e884f5a48d
Handle stale-if-error directive
2013-02-28 14:15:02 +00:00
thewilkybarkid
76f7287322
Store cached responses for longer, allowing stales to be served
2013-02-27 11:21:20 +00:00
Michael Dowling
81d15dd3e0
Merge pull request #247 from thewilkybarkid/cache-debug-headers
...
Cache debug headers
2013-02-26 10:30:03 -08:00
thewilkybarkid
41df91d352
Add Via headers to requests/responses going through the cache plugin
2013-02-25 12:46:24 +00:00
thewilkybarkid
7b10768a4c
Add X-Cache and X-Cache-Lookup headers to responses
2013-02-25 12:40:46 +00:00
thewilkybarkid
e91bf037ce
Response is only stale if the age is greater than the max-age
2013-02-25 11:12:27 +00:00
Michael Dowling
bc2a86d1b1
Allowing more return types from the Response::json() method. Closes #244
2013-02-24 19:38:40 -08:00
Michael Dowling
0234efc6e1
Not converting stream wrapper and type to lowercase
2013-02-23 15:35:22 -08:00
Michael Dowling
b723c4d35b
Moving the request param curl.emit_io to curl options under emit_io
2013-02-23 14:05:13 -08:00
Michael Dowling
c6fafe5c55
Fixing a unit test
2013-02-23 00:36:38 -08:00