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

207 Commits

Author SHA1 Message Date
Michael Dowling
f619d8fa0e [Http] Fixing issue that caused two Content-Length headers. Adding better test coverage for Content-Length and chunked Transfer-Encoding. Removing some duplicate tests. v2.1.2 2012-01-25 11:02:08 -06:00
Michael Dowling
88ba81fc67 Readability and cyclomatic complexity tweaks 2012-01-25 00:26:08 -06:00
Michael Dowling
dc22f479d0 Removing @ error suppression from CurlHandle and instead checking if the handle is a resource before doing any curl related calls. Making the JsonDescriptionBuilder more readable. v2.1.1 2012-01-24 14:56:04 -06:00
Michael Dowling
53a2bf791c Coding standards v2.1.0 2012-01-23 19:41:45 -06:00
Michael Dowling
f92c049df5 Moving the onComplete handling of Guzzle\Http\Message\RequestInterface to the Symfony EventDispatcher. Subscribe to the request.error event to imlpement your custom error handling. Use $event->stopPropagation() to override the default error handling for unsuccessful responses. request.success is now called any time a request completes successfully. 2012-01-23 18:50:02 -06:00
Michael Dowling
59fd695b4f Using automated links instead of github downloads for phar files 2012-01-23 09:30:01 -06:00
Michael Dowling
109bad53d3 [Http] Adding OAuth 1.0 signature plugin v2.0.5 2012-01-22 17:48:25 -06:00
Michael Dowling
2986444944 [Service] Fixing headers set using an array on commands via the constructor
Removing special handling of ClosureCommand
Throwing an exception when required parameters are missing from a dynamic command
Pass ApiCommand objects to a ClosureCommand in the second argument of the constructor, not in the api_command parameter key
Adding Guzzle\Service\Command\DynamicCommand that will prepare HTTP requests based on an API command. Extend this class for advanced response processing for API commands.
Making DynamicCommand the default command for ApiCommands
Removing the old DynamicCommandFactory and replacing with a simpler ApiCommandFactory
v2.0.4
2012-01-21 19:08:15 -06:00
Michael Dowling
466c28e224 Fixing link to phar in readme 2012-01-21 17:31:21 -06:00
Michael Dowling
7fdae5b984 [Service] Automatically converting command results with an application/json Content-Type to an array 2012-01-20 16:58:30 -06:00
Michael Dowling
829d8ae178 Fixing the cache.revalidate parameter v2.0.3 2012-01-20 00:28:15 -06:00
Michael Dowling
de4fb29c9b [Http] Passing any config settings in a client that start with "cache." to the params of a each request created by the client 2012-01-20 00:05:38 -06:00
Michael Dowling
8aee7da90c [Http] Adding check in CurlMulti to ensure that a request handle exists before operating on it. \
Adding fix so that when a revalidation response returns a 200 response and the response is cacheable, the cached data uses the maximum age of the new response (not the default ttl) \
Adding fix so that when a revalidation response contains updated caching headers, the cached response data is updated \
Added fix so that when a revalidation response is a 404, the cached data is deleted and the 404 exception is thrown \
Renaming the ``cache.revalidate`` options that can be set in the params of a request from "accept" => "never" and "decline" => "always"
2012-01-19 23:43:25 -06:00
Michael Dowling
ac64abc2c0 [Http] Adding more info in the docblock for onComplete methods v2.0.2 2012-01-17 23:37:36 -06:00
Michael Dowling
35bfd843d2 [Http] Adding better coverage to onComplete callbacks in requests. Allowing a response to be overridden in an onComplete callback by returning a Response object in the callback. 2012-01-17 23:35:10 -06:00
Michael Dowling
40027b0fff [Service] Fixing the creation of ClosureCommands when using the DynamicCommandFactory v2.0.1 2012-01-16 16:54:21 -06:00
Michael Dowling
ab4b848dc0 Adding IRC info 2012-01-16 14:12:22 -06:00
Michael Dowling
86d21e1fc5 Fixing the setMockResponse() method for GuzzleTestCase 2012-01-16 11:14:41 -06:00
Michael Dowling
6cf372f928 Fixing composer.json so that it autoloads from the Guzzle\Tests namespace 2012-01-15 12:31:00 -06:00
Michael Dowling
d7e332bb64 [Http] Adding a BatchQueuePlugin to make it easier to queue requests and flush the queue implicitly or explicitly v2.0.0 2012-01-15 10:36:28 -06:00
Michael Dowling
7605ef08a7 Adding requests asynchronously when sending CommandSets 2012-01-15 10:25:12 -06:00
Michael Dowling
c34deef699 Ignore guzzle-min.phar
Fixing .gitignore
2012-01-15 10:24:11 -06:00
Michael Dowling
f2adeb0207 Merge branch 'master' into 2.0b 2012-01-14 13:57:05 -06:00
Michael Dowling
4c46e77015 Guzzle 2.0
Adopting composer for dependency management
Updating LICENSE, travis build file, making better use of git ignores, and remove unused build target
Removing @author tags.  Use the commit history for a changelog.
Moving files from build folder to /
Adding min build target to product a Guzzle only phar with no autoloader
[Common] Accepting ZF1 or ZF2 cache in ZendCacheAdapter
[Common] Optimizing Stream wrapper and EntityBody abstractions.
[Common] [Http] Migrating from Guzzle event system to the Symfony2 event dispatcher
[Common] Moved Inflector and Inspector to Service namespace
[Http] Simplifying Guzzle\Guzzle curl detection
[Http] Removing Guzzle\Http\Pool and now using Guzzle\Http\Curl\CurlMulti
[Http] The helper methods from Guzzle\Http\Message\RequestFactory have been removed to prevent confusion and encourage developers to use Guzzle\Http\Client to create requests.
[Http] Clients can now send one or more requests in an array using the send() method, so the batch() method was removed.
[Http] Updating curl multi to allow blocking calls while sending other transfers
[Http] Making the Request::hasHeader method more intuitive.  Guzzle\Http\Message\AbstractMessage::hasHeader() now returns true if the header is found using exact matching.  If the header is found using a regex or case-insensitive match, then it will return the name of the found header.
[Http] Removing content-type guessing from EntityBody based on file extension and solely using finfo.
[Http] Adding basic auth plugin
[Http] Cleaning up CookieJar and CurlMulti
[Http] Removing custom rawurlencode from QueryString because PHP 5.3 now properly deals with tilde characters.
[Http] Minor optimization to parsing messages in RequestFactory
[Http] Adding Guzzle\Http\Client for developers that don't need commands or service descriptions
[Http] Making it easier to set a global User-Agent header for a Guzzle\Http\Client
[Http] Fixing the discrepancies between the ClientInterface and Guzzle\Http\Client
[Http] Adding the ability to set and retrieve tokenized headers from Requests and Responses
[Service] Ditching NIH filters and using the Symfony2 validator
[Service] Moving most service building logic to the ServiceBuilder::factory method so that it is easier to build custom config readers.
[Service] Allowing deep nested command inheritance.
[Service] Cleaning up Inflector caching.
[Service] Getting rid of concept of can_batch because everything is now sent in parallel.
[Service] Adding a JSON description builder.
[Service] Cleaning up ResourceIteratorApplyBatched.
[Service] Removing caching stuff from ServiceBuilder because the data being cached is extremely fast to generate.
[Service] Added a method to serialize the ServiceDescription in case a ServiceDescription needs to be cached in an application.
[Service] Making description builders use static methods.
[Service] Adding support to include other description files for XML and JSON description builders.
[Service] Adding support for filters to ApiCommands
[Service] Using {{}} instead of $. to reference other services as a dependency for another service
2012-01-14 13:57:05 -06:00
Michael Dowling
13ea2e723e [Http] Making Request::hasHeader more intuitive v1.0.4 2011-12-31 15:30:12 -06:00
Michael Dowling
be0ec6dd5a [Service] Allowing internal references to other clients in service builder configs 2011-11-23 09:43:13 -06:00
Harold Asbridge
85dae7d413 Fixing URL calculation 2011-11-18 14:19:52 -06:00
Michael Dowling
31cf95ab47 Fixing mocks for tests 2011-11-18 13:22:06 -06:00
Michael Dowling
45e5f83e58 [Service] Clients will now create a command set for you if you pass an array of commands to the execute method v1.0.3 2011-11-13 19:56:54 -06:00
Michael Dowling
db3cd76bd3 Updating version 2011-11-13 19:38:28 -06:00
Michael Dowling
f4dabcfc58 Updating README v1.0.2 2011-11-13 19:29:05 -06:00
Michael Dowling
36260a0cdf Excluding interfaces from code coverage 2011-11-13 19:07:40 -06:00
Michael Dowling
ca629f8593 Adding link to phar 2011-11-13 18:46:17 -06:00
Michael Dowling
3946b93bbf [Tests] Getting code coverage back to 100% 2011-11-13 16:46:37 -06:00
Michael Dowling
a5bf022a31 Adding travis-ci build status image 2011-11-13 13:34:08 -06:00
Michael Dowling
b5f0507a0c [Tests] Adding .travis.yml
Removing logging from node server
Fixing history plugin test
Fixing bzip2 test
Fixing timestamp test
2011-11-13 13:30:34 -06:00
Michael Dowling
502af78a33 [Build] Moving client template generation to guzzle-client-template repo 2011-11-13 11:13:29 -06:00
Michael Dowling
64bfbbd466 [Tests] Fixing tests after PHPUnit upgrade 2011-11-13 00:38:41 -06:00
Michael Dowling
d390a5f2e3 [Service] Making it easier to send requests in parallel using the batch() command of a client. Updating tests to use MockPlugin 2011-11-12 21:19:22 -06:00
Michael Dowling
9b29c72825 [Build] Updating phar generation 2011-11-12 19:47:05 -06:00
Michael Dowling
503c16668e [Tests] Adding `@server annotation to tests that require access to the node.js server. If you cannot install node.js, use phpunit --exclude-group server` to run the other tests. 2011-11-12 19:31:00 -06:00
Michael Dowling
bc8dca93af Adding check to see if curl is installed. Closes #9 2011-11-12 17:37:59 -06:00
Michael Dowling
17b9a70d9a [Service] Mock plugin accepts an array of responses in the constructor 2011-11-11 22:56:10 -06:00
Michael Dowling
4a263abf59 Adding more coverage 2011-11-11 18:53:12 -06:00
Michael Dowling
3acd76070a [Service] Allowing client to be instantiated without a base URL 2011-11-11 18:24:53 -06:00
Michael Dowling
d1e2157e62 Fixing typo 2011-11-11 17:26:18 -06:00
Michael Dowling
f260138eb5 Updating readme 2011-11-11 17:21:41 -06:00
Michael Dowling
6848b4a91f [Service] Updating Guzzle\Service\Client to be identical to RequestFactory. Injecting client configs when {{}} are present 2011-11-11 17:08:35 -06:00
Michael Dowling
efe275f300 [Http] Making EntityBody create an empty temp stream by default if no resource is provided 2011-11-11 10:16:11 -06:00
Michael Dowling
af5cdbda6e [Http] Adding HistoryPlugin. Closes #8 2011-11-10 23:04:19 -06:00