1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-25 18:43:22 +01:00

396 Commits

Author SHA1 Message Date
Michael Dowling
c500f0bf0c [Inflection] [Service] Adding more inflection flexibility
BC: Removing Guzzle\Service\Inflector in favor Guzzle\Inflection namespace
Can now inject inflectors into clients, and several class name factories
BC: Removing the magic method call set<X> behavior from commands.
2012-06-14 12:03:48 -07:00
Jeremy Lindblom
ec0991569f Fixed some typos, mostly in comments. Also fixed the LogPluginTest to make one of the assertContains checks more generic such that it passes on more systems. 2012-06-14 10:23:53 -07:00
Jeremy Lindblom
e3b3c3c19f Added BatchClosureTransfer - fixes #75.
The BatchClosureTransfer allows a closure to be passed in for specifying transfer logic in the batch system.
2012-06-14 09:22:55 -07:00
Michael Dowling
645f01787e [Http] Removing no longer needed normalization for mock response files 2012-06-12 16:49:04 -07:00
Michael Dowling
542503ef2a Merge pull request #69 from gimler/array_adapter
add array log adapter
2012-06-12 10:11:43 -07:00
Gordon Franke
632037b9af add array log adapter 2012-06-12 11:18:08 +02:00
Michael Dowling
93c22be0a6 Merge pull request #74 from gimler/fix_tests
Fix tests
2012-06-11 09:41:41 -07:00
Gordon Franke
3875fa2a4e use phpunit.xml.dist instate phpunit.xml as test file 2012-06-11 11:23:07 +02:00
Gordon Franke
f171e85e50 skip tests if pecl_http ist not installed 2012-06-11 11:22:42 +02:00
Michael Dowling
72b6c53af2 Updating changelog v2.6.6 2012-06-10 00:49:48 -07:00
Michael Dowling
f8a2197991 Adding a new generic batching system for requests and commands.
BC: Removed Guzzle\Http\Plugin\BatchQueuePlugin
BC: Removed Guzzle\Service\Command\CommandSet
2012-06-10 00:42:23 -07:00
Michael Dowling
dc0c0bd032 Merge pull request #71 from jpb0104/master
Fixes #70. Revert case of cookie header key back to "Cookie"
2012-06-07 15:11:27 -07:00
Jason Bouffard
4913b67cc1 Fixed case of cookie header key #70 2012-06-07 21:36:27 +00:00
Michael Dowling
cd043b61b3 [Service] Adding doc_url to service descriptions 2012-06-06 20:51:54 -07:00
Michael Dowling
7370ad44ca [Service] Adding result_type, result_doc, and deprecated to service description commands. Changing most default values of command date to null instead of an empty string. 2012-06-06 17:06:16 -07:00
Michael Dowling
ebaff511f7 [Service] Ensuring that the name of each ApiParam is set when creating ApiParams in the ApiCommand constructor 2012-06-06 16:01:13 -07:00
Michael Dowling
d8a6bf4849 Updating ZF2 cache and log adapters. Using the ZF2 provided composer repositories. 2012-06-04 12:17:20 -07:00
Michael Dowling
10759045ad Updating changelog for 2.6.5 v2.6.5 2012-06-03 19:37:12 -07:00
Michael Dowling
76ac09bc5a Making it easier to add event subscribers 2012-06-02 22:42:21 -07:00
Michael Dowling
0d59a479bb Fixing brittle test. Removing debug stuff from travis 2012-06-02 21:56:23 -07:00
Michael Dowling
1136c66774 [Http] BC: Renaming Guzzle\Http\Message\RequestInterface::getResourceUri() to getResource() 2012-06-02 21:49:42 -07:00
Michael Dowling
614e4d1666 [Http] Refactoring cookie implementation
* Guzzle\Http\Cookie is now used to manage Set-Cookie data, not Cookie
data
* Moving almost all cookie logic out of the CookiePlugin and into the
Cookie or CookieJar implementations
* Array cookie jar now returns matching cookies for a request and adds
cookies from responses
* Renaming methods in the CookieJarInterface
* Removing old references to deleted classes
* Guzzle\Http\Message\Request no longer needs an internal Cookie object
* Making the default glue for HTTP headers ';' instead of ','
* Adding a removeValue to Guzzle\Http\Message\Header
* Adding getCookies() to request interface.
* Removing unused AUTH_BASIC and AUTH_DIGEST constants from
* Guzzle\Http\Message\RequestInterface
* Lots of cleanup in the Guzzle\Http\Parser\Cookie\CookieParser
* Cleaning up Cookie related tests
2012-06-02 21:38:05 -07:00
Michael Dowling
acd36b13c2 Updating changelog v2.6.4 2012-05-30 23:42:52 -07:00
Michael Dowling
f48f686e7a [Service] Moving ApiCommand specific functionality from the Inspector and on to the ApiCommand 2012-05-30 23:32:30 -07:00
Michael Dowling
06834146d7 [Http] BC: Cleaning up how POST files are stored on entity enclosing requests 2012-05-30 18:49:29 -07:00
Michael Dowling
4b7b1d45ad [Common] Adding a trim when exploding any_match constraints 2012-05-30 17:32:53 -07:00
Michael Dowling
7be24404cc [Service] Parsing location and type arguments when ApiParam objects are created instead of each type they are validated or turned into commands. 2012-05-30 17:18:37 -07:00
Michael Dowling
1d9bef8a38 [Service] Adding a way to track the number of requests sent by a resource iterator 2012-05-30 11:21:30 -07:00
Michael Dowling
96fd4f916e [Http] Simplifying file cookie jar persistence 2012-05-30 11:02:33 -07:00
Michael Dowling
2470715f9b [Http] Not requiring status codes or reason phrases to match a predefined list. Closes #64. 2012-05-29 16:33:52 -07:00
Michael Dowling
3073b40e41 [Common] Not requiring an inspector for any_match. Removing all previously set mock listeners when adding a new mock observer in tests. 2012-05-29 14:37:24 -07:00
Michael Dowling
0eafe01bba [Service] Only appending and prepending if they are set on a dynamic command 2012-05-28 13:24:06 -07:00
Michael Dowling
699c27bca6 [Http] Passing the request object to a calculateWait function. Closes #63 2012-05-28 12:54:37 -07:00
Michael Dowling
492ec724a5 Merge pull request #62 from guzzle/non_blocking
[Http] Adding an AsyncPlugin
2012-05-28 12:50:18 -07:00
Michael Dowling
6dfd3d2809 [Http] Adding an AsyncPlugin 2012-05-24 20:15:58 -07:00
Michael Dowling
c877894bcb [Common] Allowing dot notation for classes when using the instance_of validation constraint. Now works with JSON service descriptions. 2012-05-24 13:53:23 -07:00
Michael Dowling
21e5afccbf Merge remote-tracking branch 'davedevelopment/nested-post-with-files' 2012-05-24 13:09:06 -07:00
Michael Dowling
82c1b2ac57 [Service] Allowing the result of a command to be changed. pt 2. 2012-05-24 13:08:33 -07:00
Michael Dowling
7cfd7e765b [Service] Allowing the result of a command to be changed 2012-05-24 13:06:16 -07:00
David Abdemoulaie
05f819ee51 Updating test to reflect correct version string 2012-05-24 10:36:19 -05:00
David Abdemoulaie
80d66fedd5 Fixing default User-Agent version numbers
(PHP version was swapped with curl version)
2012-05-24 10:10:39 -05:00
Dave Marshall
fe9e122d9e Aggregate and encode data before passing to curl 2012-05-24 11:55:26 +01:00
Michael Dowling
d812cb0d39 Fixing the email constraint so that it only checks strings 2012-05-23 23:33:00 -07:00
Michael Dowling
d2b59d2680 [Common] Adding an any_match validation constraint that passes if any constraints pass 2012-05-23 23:05:37 -07:00
Michael Dowling
c98b0fe29e Making getServer() and getServiceBuilder() static in tests. Fixing magic method calls on clients 2012-05-23 12:21:09 -07:00
Michael Dowling
bf668df105 Updating changelog v2.6.3 2012-05-23 00:23:26 -07:00
Michael Dowling
c9aca2daad Refactoring how the Inspector works with commands.
Filters are run after type validation.
Adding a functional test to ensure some of the JSON example service
description use cases will work.
Instead of the slew of boolean options the validateConfig() method
required, I added a initConfig() method to add default and static values
to a collection, and removed all validation and idempotent specific args
from validateConfig().  When a commmand is instantiated, default and
static values are added as appropriate.  When a command is being
prepared, defaults and statics are again added, but parameters are also
validated (assuming type validation was not globally disabled on the
inspector).
2012-05-22 23:58:29 -07:00
Michael Dowling
d25fc74fa0 [Http] Adding support for Content-Type in POST upload and multiple POST
uploads for the same filename.

You can specify the Content-Type of each separate multipart upload.  The
Content-Type of each file is automatically guessed if possible, and if
content-type is not explicitly set to false. Resolves #55.

[BC] Refactoring how POST files are stored on an EntityEnclosingRequest.
They are no longer mixed with the POST fields, but rather stored in an
array of separate POST files, each array key corresponding to a POST
field name, and array value containing an array of
associative arrays containing the 'file' and 'type' for each POST file.

You can still specify files and fields when using a client or request
factory, but no longer with an EntityEnclosingRequest->setPostField()
call.

Adding new POST data operations for easier manipulation of POST data.

You can now set empty POST fields.  Closes #56.

The body of a request is only shown on EntityEnclosingRequest objects
that do not use POST files.
2012-05-22 23:30:05 -07:00
Michael Dowling
2529aaa3b1 Removing the requirement that HTTPS requests needed a Cache-Control: public directive to be cacheable. 2012-05-22 14:33:11 -07:00
Michael Dowling
5b597ce24c [Service] Moving parameter filters before validation 2012-05-21 20:35:17 -07:00