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

37 Commits

Author SHA1 Message Date
Michael Dowling
e4ded87e8c Cleaning up 2011-03-21 09:46:27 -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
Michael Dowling
5000972453 [Service] Removing the need to create builders. Giving clients back their constructor and removing the docblock annotation magic from clients. Using a factory method for every client with a custom constructor so that the service builder will be able to convert an array of parameters into a client. Simplifying service builder and services.xml. 2011-03-18 14:04:57 -05:00
Michael Dowling
58bce23cf9 [Service] Moving docblock annotations for services into the builder and giving clients back their constructors. 2011-03-17 22:37:20 -05:00
Michael Dowling
d472fa5cf2 [Http] Making the cookie plugin act more like a browser; not url encoding cookie values. Adding the ability to extract cookies from redirect responses. Adding the previously received request to the request event notification issued when a new status line is received. 2011-03-16 15:31:16 -05:00
Michael Dowling
c94f8e66b9 [Http] Adding check to make sure node.js server is running when starting the node.js server. 2011-03-16 13:05:57 -05:00
Michael Dowling
f236e8080d [Http] [Service] Adding better support for OPTIONS requests and determining if a method is allowed on a resource 2011-03-15 20:09:25 -05:00
Michael Dowling
587b61d161 [Http] Updating readme. Adding helper method to Guzzle\Http\Message\Response to check if the response is of a certain Content-Type. This helps when the Content-Type header contains the mime-type and charset. 2011-03-13 20:56:52 -05:00
Michael Dowling
d83423fac8 [Http] Adding fix for when parse_url does not return array 2011-03-13 18:44:18 -05:00
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
fd3c20aaee [Http] Using the EntityBody::factory when creating requests through the RequestFactory 2011-03-11 14:07:31 -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
fad88abe14 [Http] Adding better docblock comments for the scripts node.js server control class 2011-03-11 09:08:02 -06:00
Michael Dowling
e90bd57757 Documenting all of the signals that are emitted from Subject objects 2011-03-10 22:29:13 -06:00
Michael Dowling
1fbe7f9e1b [Common] Removing unnecessary use statements 2011-03-10 20:03:14 -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
8d9d7fdae6 [Http] Adding better events from the Request object, including when a curl handle is released, when the response status line is received, and when a response header is received. 2011-03-10 08:56:37 -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
959ce370ec [Service] Fixing the toString representation of a ServiceBuilder 2011-03-09 17:05:02 -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
bccf1635aa Updating email references 2011-03-07 22:36:43 -06:00
Michael Dowling
92ea89d393 [Common] Event docblock updates 2011-03-07 22:34:19 -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
6da9185742 [Service] Using the DefaultBuilder when no builder is specified in a client configuration 2011-03-03 23:13:56 -06:00
Michael Dowling
ac3be93c9b Fixing typos 2011-03-03 12:24:51 -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
66de117199 [Service] Refactoring the ConcreteDescriptionBuilder so that it can work with disparate directories for Services 2011-02-28 23:52:37 -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