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

484 Commits

Author SHA1 Message Date
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
Francesc Rosàs
228b147d4d Don't reuse CurlMulti 2013-02-08 00:04:54 +01:00
Michael Dowling
e290a773bc Fixing infinite loop when using default exponential backoff plugin for 500 responses 2013-02-05 13:38:20 -08:00
Michael Dowling
5c2f8a176f Adding ToArrayInterface to Event 2013-02-02 20:14:53 -08:00
Michael Dowling
2f8565b46a Updating headers to split using glue when added 2013-01-31 22:28:06 -08:00
Michael Dowling
d21c5886a3 Removing overly verbose covers annotations from UrlTest 2013-01-31 22:09:55 -08:00
Michael Dowling
f4f154c06f Merge remote-tracking branch 'mpv/master' 2013-01-31 22:06:22 -08:00
Michael Dowling
e749ffe6f8 Merge pull request #227 from hobodave/refactor-url
Refactor URL implementation per RFC-3986
2013-01-31 22:00:46 -08:00
Michael Dowling
08812f77ba Fixing some formatting 2013-01-31 17:18:35 -08:00
David Abdemoulaie
db5b96d08d Fixes edge-cases in Url, QueryString, and Request
Falsy values (the string "0") are now handled properly

e.g. http://foo.com?0, http://foo.com#0
2013-01-31 14:35:20 -06:00
Vitaliy Kalachikhin
623c4156a2 Fixing the bug when filters are not invoked for 'array' operation parameter type, adding unit test for this as well 2013-01-31 22:21:27 +04:00
Michael Dowling
cde72ff57a Path for requests must always be absolute. Optimizing Url::__toString(). 2013-01-30 20:51:56 -08:00
David Abdemoulaie
0d71baf35b Request resource must always be an absolute path 2013-01-30 18:48:28 -06:00
David Abdemoulaie
8aabcebef1 QueryString::$prefix is now completely unnecessary - removed 2013-01-30 17:32:43 -06:00
David Abdemoulaie
74b55d0c85 Remove query_prefix from Url parts 2013-01-30 17:29:35 -06:00
David Abdemoulaie
3942ab7eff Merge remote-tracking branch 'origin/master' into refactor-url 2013-01-30 17:17:57 -06:00
David Abdemoulaie
d0f2aff142 Massive refactoring of Url, QueryString, and Request for RFC3986
TODO: ArrayCookieJar & tests are failing
2013-01-30 17:16:42 -06:00
Michael Dowling
6233395918 Fixing redirect response chaining. Closes #223 2013-01-26 00:20:43 -08:00
Ben Parker
5e0ff2ef20 Changes value of CURLOPT_SSL_VERIFYHOST set in Http Client
1 as a value for CURLOPT_SSL_VERIFYHOST is deprecated
in libcurl 7.28.1, recommended value is now 2
2013-01-25 22:40:55 +00:00
Victor Sollerhed
fee166a5cc Fixing indentation in UrlParserProvider.php 2013-01-25 11:49:12 +01:00
Victor Sollerhed
706b20e42e Adding unit test case (in data provider) covering that if you use Url::buildUrl with an empty string, you should get an empty string as result. 2013-01-25 11:46:13 +01:00
Michael Dowling
1ec658b251 CS fixes 2013-01-24 10:45:28 -08:00
David Abdemoulaie
6c19fca9d1 Adding Accept-Encoding header now sets CURLOPT_ENCODING - fixes #217 2013-01-23 20:44:50 -06:00
Jeremy Lindblom
f9e12d2842 Updated client to not clobber user agent when setting default headers 2013-01-23 12:48:34 -08:00
Victor Sollerhed
923f03311e Adding unit test case covering that if you use the Url factory with an empty string, you should get an empty string as result. 2013-01-23 20:04:46 +01:00
Michael Dowling
53260156a5 Refactoring how operation responses are parsed
Fixing a bug that did not allow clients to set response processing of a command
Adding a VisitorFlyweight for creating request and response visitors
Removing the owning of visitors from request and response parsers/serializers
Adding before() method to response location visitors
Moving the default parsing logic of JSON and XML from operation parser to location visitor before() methods
Only triggering after() commands on location visitors associated with an operation
Closes #214
2013-01-22 23:53:52 -08:00
Michael Dowling
88a3b02424 Adding a composite resource iterator factory and improving interface 2013-01-20 16:31:35 -08:00
Michael Dowling
2d2637ce11 Adding alias support to service builders 2013-01-19 19:03:06 -08:00
Michael Dowling
6fa131581a Adding wildcard capabilities to getPath() 2013-01-19 19:01:19 -08:00