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
Michael Dowling
31a1a522fa
Setting a service description no longer messes with command factories
...
Adding some missing inheritdoc docblocks
2013-02-22 22:19:07 -08:00
Michael Dowling
ff6738a028
Refactoring setUserAgent and Removing Guzzle\Http\Utils
...
Guzzle\Http\Client::setUserAgent() now simply accepts a string as input
2013-02-22 22:07:19 -08:00
Michael Dowling
3f8568c76b
Removing unnecessary CURLOPT_USERAGENT settings
2013-02-21 16:38:58 -08:00
Adrian Macneil
47f4942f39
Allow calling setAuth() with a blank password. Closes #239
...
This supports APIs such as Stripe which only require a username to authenticate.
2013-02-16 10:38:38 +07:00
Michael Dowling
69ad0affa2
The encoding scheme used by Guzzle\Http\QueryString can now be
...
customized
Guzzle\Http\QueryString no longer accepts a callback function for
aggregation but rather uses QueryAggregatorInterface objects.
Addresses #238 .
2013-02-13 23:28:44 -08:00
Aurélien Thieriot
500b63986c
Make a choice when max-age is present twice
2013-02-13 10:04:45 +00:00
Michael Dowling
17af797f0f
Adding a way to explode all headers on glue using the normalize method
2013-02-10 19:30:29 -08:00
Michael Dowling
a8dc1189aa
Headers are no longer split on a default glue of "," when adding
...
Rolls back 2f8565b46ac721259497a39e7f458a720acf9d64
This is necessary to work well with headers with commas (e.g. Date)
2013-02-10 15:16:48 -08:00
Michael Dowling
c57b28e111
Adding setData() to service descriptions
2013-02-09 18:03:39 -08:00
Michael Dowling
88745129f1
Can now customize XML encoding. Closes #232
2013-02-07 21:01:23 -08:00
Michael Dowling
7fcf34bb34
Merge pull request #233 from frosas/do-not-reuse-curlmulti
...
Don't reuse CurlMulti
2013-02-07 15:29:31 -08:00