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

1169 Commits

Author SHA1 Message Date
Michael Dowling
9844615293 [Http] Allowing Guzzle\Http\Url to build relative URLs. Adding the ability to combine URLs, check if a URL is absolute, and add to the already set path of a URL.
[Service] Allowing simpler Guzzle\Service\Client objects to be created (removing the requirement of a ServiceDescription and CommandFactory).  Allowing the first argument of the clientss constructor to be an array or collection of config data, or, when a string is used, be just the base url of the web service.  Adding get, head, delete, put, and post helper methods to the client, and adding support for Spring-like REST templates for clients.  Clients can now create requests that extends the base URL of the client.
2011-03-13 18:37:02 -05:00
Michael Dowling
d5ffdace8a [Http] Cleaning up Request. Using an onComplete callback function rather than a class for processing requests when they complete. The default onComplete handler will throw an exception when an unsuccessful response is received. 2011-03-11 17:11:27 -06:00
Michael Dowling
8c5bef47b1 [Http] [Service] Making the default request factory use static methods. Adding common HTTP method helper methods to the request factory. Renaming Client::getRequest() to Client::createRequest(). Renaming some methods of the RequestFactory. Changing the interface of Client::createRequest() to use a string or array and proxy calls to the default request factory. The createRequest method can be overridden in sub-classes if you need to use custom request objects. 2011-03-11 13:52:26 -06:00
Michael Dowling
4c0e52a1c7 Moving injector code to Guzzle\Guzzle. Moving Stream\StreamHelper to Stream. Request docblock updates. Renaming the event for releasing curl handles to be more in line with other request.curl events. Renaming some Pool methods. Revamping the log plugin to use bitwise operators to control log settings. LogPlugin can now log cURL debug information and will include redirect responses. 2011-03-10 19:51:50 -06:00
Michael Dowling
dd76c259e0 [Service] Moving the Guzzle\Service\Builder\ServiceBuilder up one namespace level. 2011-03-09 17:09:40 -06:00
Michael Dowling
24483db994 [Common] [Http] Renaming CacheAdapter to Cache. Removing Logger and just using LogAdapters for the LogPlugin. Moving LogAdapters into the Common\Log namespace. Removing Common\Filter\Chain as signal slots are now used instead. Adding tests for Collection::isRegex(). Removing NullIterator in favor of a more versatile NullObject. 2011-03-09 16:52:28 -06:00
Michael Dowling
8f2df68a4a [Common] [Http] [Service] Removing AbstractPlugin and just relying on regular signal slot observations for the built in plugins. Removing plugin logic from Clients. Adding administrative events for observers: event.attach, event.detach. Consolidating the ExponentialBackoffPlugin into one class. Moving CookieJars into the Http namespace. 2011-03-08 22:17:28 -06:00
Michael Dowling
e4af51748a [Common] [Service] [Tests] Allowing anonymous functions to subscribe to the EventManager. Removing the create request chain from Clients and instead relying on signal slots. Updating tests to reflect this change. 2011-03-08 10:04:48 -06:00
Michael Dowling
3c0984f03e [Common] [Http] [Service] Renaming the Subject namespace to Event. Removing the redundant behavior of signal slots vs intercepting filters for emitting events from requests and clients. Updating the SubjectMediator to become EventManager and simplifying how it emits events to observers. 2011-03-07 22:21:33 -06:00
Michael Dowling
83a6f47f94 [Service] Coding standards. Renaming command methods on CommandSetException 2011-03-06 20:32:20 -06:00
Michael Dowling
2e82038612 [Tests] Ensuring that the correct class was instantiated when using the assumed DefaultBuilder 2011-03-03 23:16:27 -06:00
Michael Dowling
6da9185742 [Service] Using the DefaultBuilder when no builder is specified in a client configuration 2011-03-03 23:13:56 -06:00
Michael Dowling
308f88338b [Http] [Tests] Coding standards. Implicitly using EntityBody::factory() when setting EntityEnclosingRequest body. Adding cookies instead of replacing when using addCookie on a Request. Allowing multiple headers of the same name to be set on a Response when using the Response::factory(). Allowing multiple values to be set on a QueryString when using __toString() (aggregators will typically modify keys when they have multiple values, but Cookie sometimes needs to set multiple values using the same key). Allowing Cookie to have multiple values of the same key. Updating CookieJars so that they can store multiple cookies of the same name. Updating CookiePlugin to better handle multiple cookies of the same name 2011-03-02 23:55:31 -06:00
Michael Dowling
b8972d8385 [Service] [Tests] Cleaning resource iterator apply batched. Adding multi-service option to phpunit.xml so that services can contain mutliple clients and still determine the location of a mock response file 2011-03-01 17:13:09 -06:00
Michael Dowling
170e588f54 [Tests] Allowing mock response files to be in a different directory 2011-03-01 10:18:23 -06:00
Michael Dowling
d2efa79cae [Tests] Refactoring the way in which the service description XML file is loaded so that it allows Service modules to use a custom service.xml file in its test suite 2011-03-01 00:17:15 -06:00
Michael Dowling
284e39be4b Using the latest version of the Symfony2 UniversalClassLoader 2011-02-28 22:58:15 -06:00
Michael Dowling
6584ae411e Removing third party services from main repository. Refactoring tests to account for the absence of third party libaries-- using mock objects in their place. Fixing a bug in Inspector that would miss injection delimiters at the beginning of a string. Fixing a bug in ResourceIteratorApplyBatched that caused some resources to skipped when sending batch data to the callback. 2011-02-28 22:30:22 -06:00
Michael Dowling
d8a1277c69 Guzzle - PHP framework for building REST webservice clients 2011-02-27 22:32:13 -06:00