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

73 Commits

Author SHA1 Message Date
Michael Dowling
00299e24e8 Merge branch 'master' of https://github.com/guzzle/guzzle 2011-08-31 09:57:16 -05:00
Michael Dowling
9b5732423b Releasing curl handles between curl factory tests 2011-08-31 09:56:50 -05:00
Harold Asbridge
24b5610e70 Fixing unit test temp file creation 2011-08-31 09:54:33 -05:00
Michael Dowling
2722230aff More tweaks to get tests passing on CentOS 2011-08-30 21:07:55 -05:00
Michael Dowling
bea15cd54d Fixing unit tests for CurlFactory so that they work in my CentOS testing environment 2011-08-30 20:28:54 -05:00
Michael Dowling
4f87cb420d Cleaning up some of the HTTP namespace 2011-08-28 19:33:42 -05:00
Michael Dowling
17b4ac50d6 Cleaning up the EventManager class. Using spl_object_hash as event keys. 2011-08-28 00:06:08 -05:00
Michael Dowling
fa3c3e5c34 Moving test_service.xml to TestData 2011-08-15 09:56:32 -05:00
Michael Dowling
be42e2b960 Removing .DS_STORE files 2011-08-15 09:50:41 -05:00
Michael Dowling
15df911330 Moving the test services.xml to TestData 2011-08-15 09:48:53 -05:00
Michael Dowling
657246bc5e Removing unused test suite file 2011-08-15 09:43:18 -05:00
Michael Dowling
e4ebef9a60 ServiceBuilder::factory now accepts an array of data, the path to a .xml|.js|.json file, or a SimpleXMLElement. Each type properly handles extending classes and validation. 2011-08-14 14:39:51 -05:00
Michael Dowling
a7ae469671 Removing verbose docblock headers from every class 2011-07-07 17:17:28 -05:00
Michael Dowling
6136f7045a [Http] [Tests] Fixing a unit test that was not properly setting a mock response. Adding a convenience argument to EntityEnclosingRequest::setBody() so that you can set the body and the Content-Type at the same time. Adding more code coverage to EntityEnclosingRequest to ensure that subsequent requests can be sent using the same request object. 2011-05-08 19:02:41 -05:00
Michael Dowling
88bcaa8390 [Http] Adding a fix for parsing the Cache-Control directives of a message that has multiple Cache-Control headers. Closes #2. 2011-04-20 20:37:05 -05:00
Michael Dowling
99264d1ad6 [Tests] Add coverage to Guzzle\Guzzle 2011-04-15 15:38:57 -05:00
Michael Dowling
05d4f1038b [Http] [Tests] Removing deprecated assertType calls in tests. Moving Guzzle\Http\Server related code to Guzzle\Tests\Http as it is not used for anything but testing. 2011-04-13 19:33:48 -05:00
Michael Dowling
a6f5e6a194 Removing /src from generated Phar file. Removing deprecated assertType calls from PHPUnit tests. 2011-04-13 12:44:53 -05:00
Michael Dowling
782b323893 [Common] Adding a Monolog log adapter. Fixing the ZendLogAdapter and updating logging unit tests. Adding Monolog as a submodule and adding to to the test bootstrap. 2011-04-12 22:57:12 -05:00
Michael Dowling
4c2405ffed [Service] Changing the ServiceBuilder::factory() method to accept a SimpleXMLElement or a string filename to create a ServiceBuilder. This will make it easier to integrate with other applications without requiring any special builders. 2011-04-11 20:15:55 -05:00
Michael Dowling
8395dca859 [Http] Ensuring that cloned requests will attach observers to the cloned request using the same priority as the original request for each event observer. 2011-04-11 17:01:35 -05:00
Michael Dowling
3f224b7c8c [Http] Emitting the request.before_send event from Guzzle\Http\Pool\Pool when requests are being sent in a pool. This helps to ensure that plugins behave the same when they are dealing with single requests, request pools, commands, or command sets. This change resolves guzzle-aws issue: https://github.com/guzzle/guzzle-aws/issues#issue/5 2011-04-09 17:56:49 -05:00
Michael Dowling
0bc9e1fb80 [Http] Using streaming hash functions to calculate the Content-MD5 hash of an EntityBody. This is safer because it does not require that the entire contents of a stream be loaded into memory to calculate the MD5 hash. 2011-04-08 10:05:41 -05:00
Michael Dowling
6bff5cbd83 [Http] Making the Content-MD5 validation plugin more readable and adding more test coverage 2011-04-07 23:27:01 -05:00
Michael Dowling
85ed138b78 [Http] Adding a Content-MD5 validator plugin to ensure that the response body was not modified in transit 2011-04-07 23:20:20 -05:00
Michael Dowling
ba29bb3820 [Service] Adding ArrayAccess interface to ServiceBuilder 2011-04-07 09:54:43 -05:00
Michael Dowling
6e02eee711 [Http] Removing the MultipartFormData class cURL will handle this better 2011-03-28 22:50:19 -05:00
Michael Dowling
55523cf8bf [Http] Removing readChunked from EntityBody as this is handled by cURL 2011-03-28 22:44:40 -05:00
Michael Dowling
a1adbca83f [Http] Removing the functionality that determined if a file should be compressed based on extension. Adding more extensions to the mime type map. 2011-03-28 22:42:33 -05:00
Michael Dowling
930494c795 [Common] [Http] Adding coverage to Collection. Not forcing a request to be set to new in order to send it again. 2011-03-28 21:23:03 -05:00
Michael Dowling
7c0c64efbf [Http] Removing CurlConstants class 2011-03-28 21:00:21 -05:00
Michael Dowling
675c979094 [Service] Cleaning up Command API 2011-03-28 00:36:17 -05:00
Michael Dowling
1dce958700 [Service] Removing extraneous code from Guzzle\Service\ServiceBuilder 2011-03-28 00:10:12 -05:00
Michael Dowling
229aace559 [Common] Improving the performance of Guzzle\Common\Inspector 2011-03-27 17:46:59 -05:00
Michael Dowling
8d266bb314 [Common] Removing the ability to skip cache in the Inflector. Adding a cap to the number of items that can be cached by the Inflector. 2011-03-27 17:08:35 -05:00
Michael Dowling
08d18f6187 [Tests] Adding more tests to ensure that commands are processed as they complete 2011-03-25 17:23:52 -05:00
Michael Dowling
2c9d2ad266 [Service] Processing the result of a command in a command set as soon as the requests issued by the command completes instead of waiting for all of the commmands in the set to complete. 2011-03-25 16:26:58 -05:00
Michael Dowling
1a7953c57a [Http] Updating cookie jars and the cookie plugin to store cookies in jars with a single cookie per row to make storing, retrieving, and updating cookies easier. When a cookie version 2 is encountered with multiple cookie values in one Set-Cookie header, the cookie will be broken up into multiple cookies for the cookie jar. 2011-03-24 22:45:55 -05:00
Michael Dowling
b15cf68883 [Common] [Service] Adding a method to the event manager to get the priority level that an observer was attached at. Attaching observers to requests created by client in the same order that the observers were attached to the client 2011-03-24 11:20:38 -05:00
Michael Dowling
620e13057c [Http] [Service] Adding more coverage to Url. Fixing CookiePlugintest. Allowing XML based commands to extend previously defined commands. 2011-03-23 17:24:36 -05:00
Michael Dowling
da781d6202 [Common] [Http] Performance enhancements. Adding a match flag to Collection operations instead of determining how a key should match. 2011-03-23 14:19:14 -05:00
Michael Dowling
cf58b2c82e [Http] Only adding CURLOPT_FOLLOWLOCATION to cURL handles if open_basedir is not set 2011-03-22 22:42:33 -05:00
Michael Dowling
fd0b13140c [Http] Only checking if CURLOPT_TIMEOUT_MS is set if the version of curl is > 7.16.2. Storing a cached version of curl_version in Guzzle\Guzzle to speed up any checks on curl_version information. 2011-03-22 16:58:15 -05:00
Michael Dowling
f53d169978 [Http] [Service] Better handling in the RequestFactory to generate entity enclosing requests using various body variable types. Passing an API command to a concrete command class when working with service descriptions. Adding more tests. 2011-03-22 11:23:06 -05:00
Michael Dowling
43f3b213f2 [Tests] Updating the class attribute of the test XML service description 2011-03-21 23:05:00 -05:00
Michael Dowling
be9519e75d [Tests] Fixing PHPUnit @covers annotation 2011-03-21 09:50:16 -05:00
Michael Dowling
cc0e767df2 [Tests] Fixing the enableClientDebug method 2011-03-20 20:18:01 -05:00
Michael Dowling
12da52bf7c [Service] Adding the ability to get the short form name of a command by calling getName() on a command object 2011-03-20 19:16:47 -05:00
Michael Dowling
6ef91c5e13 Syncing up the command interface and abstract command class. Removing extraneous methods. Coding standards updates. 2011-03-20 18:46:47 -05:00
Michael Dowling
8cd23cefb1 [Service] Removing service descriptions from concrete command based clients. Only use a service description if your client uses dynamic commands. Dynamic commands and concrete commands can be used in the same client-- Client::getCommand will look to see if a service description has been set and if it contains the command by name, then the client will see if a concrete command class matches the supplied name using inflection. Removing caching stuff from client factory methods. Removing client builders as a factory can handle it. 2011-03-20 17:51:54 -05:00