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

30 Commits

Author SHA1 Message Date
Michael Dowling
c26db3b08a Refactoring CachePlugin to allow for more flexibile cache filtering
Adding canCacheResponse to CanCacheStrategyInterface
Adding integration test to ensure it works
Closes #203
2013-01-09 18:27:39 -08:00
Michael Dowling
4988475a01 Removing hard dep on BackoffPlugin
Making blocking a curl multi loop more generic so it can be used in other places
Closes #196
2012-12-30 09:10:36 -08:00
Michael Dowling
28d53c1e8e Fixing bug in CachePlugin where revalidations caused an infinite loop 2012-11-11 20:58:43 -08:00
Michael Dowling
51a2025e70 Cleaning up cookie validation and adding strict mode to ArrayCookieJar 2012-11-10 20:08:12 -08:00
fogs
100cc84bac Enhanced validity checking for cookies
This patch refactors the validity checking of a cookie from ArrayCookieJar::add() to a dedicated method in Cookie, where it should better belong to. Also, the check for a valid cookie name now includes RFC compliance with regards to control characters.

PHPUnitTest cases were extended accordingly.
2012-11-09 12:03:43 +01:00
Michael Dowling
861e0831c7 Not allowing empty name or domain. Cleaning up tests. 2012-11-08 20:33:19 -08:00
fogs
a80ea971c3 Fixed PSR-2 compliance of previous changes 2012-11-07 07:02:42 +01:00
fogs
4b29614acd Test cases for cookies with value=0 as well as updated value + parameter 2012-11-06 22:26:14 +01:00
Fernando Paredes Garcia
76fe594607 fix tests that were troublesome for some reason 2012-11-03 23:13:53 -05:00
Luis Cordova
65d7fb18f9 tests passing but marked one incomplete as it lacks a robust assertion 2012-11-03 22:57:55 -05:00
Luis Cordova
e1abacc860 wip nonce needs microtime to be unique 2012-11-03 21:32:22 -05:00
Pascal Borreli
c309f229ff Fixed typos 2012-11-03 00:09:36 +00:00
Michael Dowling
464a059d09 Cleaning up and updating CookiePlugin for new redirect support. Closes #149. 2012-10-30 22:10:58 -07:00
Glenn Pratt
97da57831e Add failing test for #149, redirected request doesn't have newly added cookies. 2012-10-22 19:14:49 -05:00
Michael Dowling
b8eff43ce8 Adding more options around the debug plugin to specify the stream used to write debug messages 2012-10-15 16:48:15 -07:00
Michael Dowling
cb187199f9 Moving the Md5Validator namespace to Md5. Adding a CommandContentMd5Plugin. 2012-10-15 16:38:39 -07:00
Michael Dowling
32080ea36d Adding a shortcut for retrieving a debug log plugin to output wire traces to stdout 2012-10-15 16:38:36 -07:00
Michael Dowling
c4c5c95028 Moving Cookie related classes from Guzzle\Http to Guzzle\Plugin\Cookie 2012-10-15 16:38:34 -07:00
Michael Dowling
cf0924471c Completely rethinking service descriptions
Getting rid of the Validation component and "Inspector"
Removing custom types from service descriptions
Using a JSON schema based approach to validation and normalization
Adding a lazy building of Parameters for Operaton objects
Using camel case for postFile and postFile
Adding models support to service descriptions
Adding support for $ref overwrites of models registered with ServiceDescriptions
Adding more meta information to service descriptions
Adding data property to operations
Adding service description property to operations. Adding an XML location used to serialize XML requests.
Restructuring how service description based command requests are serialized and how responses are parsed
Adding JSON response parsers
Adding the ability to skip recursive translations on JSON responses
2012-10-15 16:38:33 -07:00
Michael Dowling
0141b24b04 Cleaning up backoff code and adding an additional test. Fixing bug that caused any ApiParam with a filter to be set to an empty string, which caused the parameter to be applied to a request 2012-10-15 16:37:51 -07:00
Michael Dowling
523af11d2f [Http] Making the type of HTTP response checks faster
Using a default log template when null or an empty string is provided
Removing the next and makesDecision methods from the backoff strategy interfaces.
Using call_user_func in callback strategies so that array() callbacks are supported.
Listening for request.sent with the LogPlugin so that even error responses are logged.
Renaming getExponentialBackoffInstance to getExponentialBackoff
2012-10-15 16:37:51 -07:00
Michael Dowling
b61bd91191 Using a Doctrine ArrayCache when no cache is provided to the cache plugin 2012-10-15 16:37:51 -07:00
Michael Dowling
0e54bf303d [Backoff] Fixing the backoff plugin so that there is now a delineation between decision making strategies and calculating strategies
Moving the truncated backoff strategy up in the default exponential backoff chain
2012-10-15 16:37:50 -07:00
Michael Dowling
91f1e3473f [Http] Adding setBody() to Response
Adding a shared MessageFormatter that expands log templates. Using in
LogPlugin and in BackoffLogger.
Making LogPlugin simpler and easier to customize.
2012-10-15 16:37:50 -07:00
Michael Dowling
158e22996b [Cache] Fixing ZF2 cache adapter 2012-10-15 16:37:50 -07:00
Michael Dowling
5429ec0dc3 Adding a more robust and extendable cache plugin 2012-10-15 16:37:50 -07:00
Michael Dowling
2393ca43a1 Cache plugin updates 2012-10-15 16:37:50 -07:00
Michael Dowling
4e59b5404f Adding a much more robust backoff plugin 2012-10-15 16:37:49 -07:00
Michael Dowling
2de3507c53 Renaming ExponentialBackoffPlugin to BackoffPlugin 2012-10-15 16:37:49 -07:00
Michael Dowling
4c12cc079f Working on breaking the project into components each with its own composer.json file 2012-10-15 16:37:49 -07:00