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

575 Commits

Author SHA1 Message Date
Michael Dowling
e850c7ddba [Service] Fixing config file aliases for JSON includes 2012-09-07 10:24:07 -07:00
Michael Dowling
0318412538 [Service] Adding removeParam() to ApiCommand 2012-09-06 20:02:10 -07:00
Jeremy Lindblom
ddc7e0530b Merge pull request #132 from jeremeamia/feature/improve-iterator-factory
Improved the iterator factory
2012-09-06 12:41:06 -07:00
Jeremy Lindblom
a71e3625c7 Improved the iterator factory so that it can look for iterators in multiple namespaces 2012-09-06 12:39:50 -07:00
Michael Dowling
60a7cbfd08 Updating changelog for 2.8.6 2012-09-05 16:39:52 -07:00
Michael Dowling
93e2405749 Tagging 2.8.6 v2.8.6 2012-09-05 16:30:30 -07:00
Michael Dowling
6300bd983a [Service] Fixing problems with custom service builders
Injecting ArrayServiceBuilder objects into {Json,Xml}ServiceBuilders
Caching instantiated service builder factories due to them being used
recursively
2012-09-05 16:25:18 -07:00
Michael Dowling
0c086f67a0 Fixing ResourceIteratorFactoryInterface.php to use an empty array. Fixing Travis build status image. 2012-09-05 00:43:02 -07:00
Michael Dowling
01eb20051d [Service] Enhancements to includes in service builder config files
- Removing caching of factory classes from the default abstract factory.
  This is usually only called once.
- Removing the cached instance of a ServiceBuilderAbstractFactory in the
  ServiceBuilder::factory. This is usually only called once.
- Returning instantiated factories rather than class names when using the
  abstract factory, allowing for modifying return values in child classes.
- Using the union of two arrays rather than an array_merge when extending
  service builder services and service params.
- Ensuring that a service is a string before doing strpos() checks on it
  when substituting services for references in service builder config files.
- Services defined in two different config files that include one another will
  by default replace the previously defined service, but you can now create
  services that extend themselves and merge their settings over the previous.
- The JsonLoader now supports aliasing filenames with different filenames. This
  allows you to alias something like '_default' with a default JSON
  configuration file.
2012-09-03 21:30:55 -07:00
Michael Dowling
e618746d56 [Common] Allow dot notation for classes used by the CacheAdapterFactory so that cache services can be defined in JSON builder configs 2012-09-03 17:31:48 -07:00
Michael Dowling
9be6ba662c Cleaning up the ServiceBuilder test and adding integration tests to ensure services can be injected after instantiating a service builder and service builders can build cache adapters 2012-09-03 17:23:04 -07:00
Michael Dowling
90ef232999 Fixing typo in docblock 2012-09-02 12:06:28 -07:00
Michael Dowling
063e0e3a0d PHP-CS-Fixer fixes to remove unused use statements and extra empty lines 2012-09-02 12:01:34 -07:00
Michael Dowling
4c6944646b [Service] Using visitors to apply parameters to dynamic commands.
Adding a json parameter location.
Tuning DynamicCommand
2012-09-02 11:50:51 -07:00
Michael Dowling
c8dca69100 [Service] Adding an addFilter() method to ApiParam 2012-08-31 17:24:05 -07:00
Michael Dowling
8860d1e9c7 [Service] Adding the ability to modify/build service descriptions, commands, and parameters 2012-08-31 12:47:06 -07:00
Michael Dowling
cc5a019e42 Tagging 2.8.5 v2.8.5 2012-08-29 13:41:32 -07:00
Michael Dowling
a0690f5f8a [Http] Perf tweak to parsing the start line of a HTTP response 2012-08-24 23:15:08 -07:00
Herman Radtke
d1e001ede7 Not all HTTP Responses include text status
Many RESTful frameworks omit the text status from the header. That
provides a response like "HTTP/1.1 200". Prevent an Undefined offset
by checking to see how many parts of the status line are provided
before trying to assign them.
2012-08-24 18:52:09 -07:00
Michael Dowling
a7ac55e4d1 [Http] Removing unnecessary __toString from Guzzle\Http\Client
Cleanup and perf tweaks to Guzzle\Http\Client
Using curl info from a curl handle in backoff logger when availble
2012-08-18 16:33:18 -07:00
Michael Dowling
4c909a2612 [Service] Making anything that extends AbstractCommand invokable. Fixing coverage on OauthPlugin. 2012-08-18 14:09:08 -07:00
Michael Dowling
bd99726ad1 [Service] Adding missing $options argument in ServiceDescription::factory 2012-08-17 16:56:04 -07:00
Michael Dowling
494649fb6b Merge pull request #123 from pda/uri-tempate-empty-array
UriTemplate suppresses key name for empty arrays.
2012-08-16 23:17:10 -07:00
Paul Annesley
798bfb0393 UriTemplate suppresses key name for empty arrays.
e.g:

params:            array()
template:          /path{?params*}
previous result:   /path?params=
correct result:    /path

Unfortunately PHP is unable to distinguish between an empty list array
and an empty associative array. However this doesn't matter, because the
empty case of either of these is considered "undefined" by the spec.

http://tools.ietf.org/html/draft-gregorio-uritemplate-08#section-2.3

  A variable defined as a list value is considered undefined if the
  list contains zero members.  A variable defined as an associative
  array of (name, value) pairs is considered undefined if the array
  contains zero members or if all member names in the array are
  associated with undefined values.

http://tools.ietf.org/html/draft-gregorio-uritemplate-08#section-3.2.1

  A variable that is undefined (Section 2.3) has no value and is
  ignored by the expansion process.  If all of the variables in an
  expression are undefined, then the expression's expansion is the
  empty string.
2012-08-17 15:22:25 +10:00
Michael Dowling
c73649caa4 CS Fixes 2012-08-16 21:07:51 -07:00
Michael Dowling
5902ea60e4 Merge remote-tracking branch 'christianchristensen/request_token' 2012-08-16 21:01:23 -07:00
Chris Christensen
cb04b4a438 [Http] request_token support in OAuth 1.0 signature plugin 2012-08-15 23:44:00 -05:00
Michael Dowling
d85ebd3e6c Tagging 2.8.4 v2.8.4 2012-08-15 10:48:56 -07:00
Michael Dowling
5b0277b0b3 [Http] Allowing request entity bodies to be transferred using a string rather than streamed by setting "body_as_string" as a curl option on a request. This gets around the issue where curl cannot rewind the stream on a redirect or challenge due to the inability of PHP to specify a seek or IO callback. Closes #120. 2012-08-14 18:16:47 -07:00
Michael Dowling
0aceeef7b0 [Http] Adding an EventDispatcher to the ExponentialBackoffPlugin and adding an ExponentialBackoffLogger 2012-08-14 14:53:09 -07:00
Sebastian Marek
ee61d6ecd0 [LogPlugin] #116 Expose request and response details through extras 2012-08-13 08:56:13 +01:00
Michael Dowling
8f0674dcb3 Fixing broken DELETE test 2012-08-12 19:38:53 -07:00
Michael Dowling
538de90a86 [Http] DELETE requests can now send along an entity body.
Retrieving a DELETE request from a client or request factory will now
return an EntityEnclosingRequestInterface object.
Cleaned up the CurlHandle::factory method.
Closes #118 (thanks to @zachbadgett for inspiration)
2012-08-12 18:55:12 -07:00
Michael Dowling
c004df0aca CS fixes 2012-08-12 15:27:41 -07:00
Michael Dowling
6ee1c502b5 [Http] Removing openssl version information from the default User-Agent header 2012-08-12 15:20:54 -07:00
Michael Dowling
f13a04390b [Http] Making fewer calls when merging Urls by utilizing a buffer variable 2012-08-12 15:14:39 -07:00
Michael Dowling
ce8cdd8f67 [Http] Attempting to seek to the beginning of a stream when sending EntityEnclosingRequest objects so that they can be reused without having to seek manually 2012-08-08 17:16:55 -07:00
Nick Peirson
e3fd5c227b Add additional status codes
The complete list of status codes can be found at
http://www.iana.org/assignments/http-status-codes/http-status-codes.xml
RFC2817 denotes this as the authorative source for status codes and
updates RFC2616
2012-08-08 15:40:33 +01:00
Michael Dowling
153ade4125 [Common] [Http] Stream and EntityBody objects will now return the stream
position to it's previous position any time a seek is made for a
temporary operation (e.g. __toString(), getContentLength(),
getContentMd()).
Cleaning up how compression offsets are handled
[Http] Adding the ability to consume request entity bodies when mocked
by the
MockPlugin
[Http] Fixing an offset error in the ReadLimitEntityBody
Only returning a subset of the body when calling __toString() on a
ReadLimitEntityBody
2012-08-07 17:20:09 -07:00
Michael Dowling
6cd3ae1f9c [Http] Adding a fix to the ReadLimitEntityBody to never exceed the Content-Length of the wrapped EntityBody 2012-08-05 21:44:47 -07:00
Michael Dowling
eebf25be22 [Http] Returning a modified result for getContentType and getContentMd5 when using a ReadLimitEntityBody 2012-08-05 15:53:19 -07:00
Michael Dowling
0ea1d86f36 [Http] Allowing for a bounded seek on ReadLimitEntityBodies 2012-08-05 12:33:01 -07:00
Michael Dowling
1c4a509ecc [Http] [Common] Adding ftell to streams. Adding ReadLimitEntityBody decorator to read only a subset of data from a stream. 2012-08-04 22:30:23 -07:00
Michael Dowling
ba0bd7fab0 Adding tests for AbstractEntityBodyDecorator 2012-08-04 14:04:37 -07:00
Michael Dowling
9effe2fb82 PHPCS and PHPStorm cleanup. Closes #104. 2012-08-04 13:47:58 -07:00
Michael Dowling
062ff6bf5f Adding an EntityBodyInterface and cleaning up existing interfaces.
Removing redundant docblocks and replacing them with inheritdoc.
2012-08-04 12:47:51 -07:00
Michael Dowling
429c36651a Merge pull request #115 from schmittjoh/patch-1
fixes a bug causing delay time to be ignored
2012-08-04 12:18:40 -07:00
Johannes
8c0a11d6c1 fixes a bug causing delay time to be ignored 2012-08-04 20:52:00 +03:00
Michael Dowling
2a646f2135 Tagging 2.8.3 and fixing the formatting of the changelog v2.8.3 2012-07-30 13:27:22 -07:00
Michael Dowling
46d1643129 Merge pull request #114 from zachbadgett/curl-multi-timeout
Changed CurlMulti::perform to pass a smaller timeout to CurlMulti::executeHandles
2012-07-30 12:43:47 -07:00