1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-26 11:05:28 +01:00

45 Commits

Author SHA1 Message Date
Michael Dowling
4c46e77015 Guzzle 2.0
Adopting composer for dependency management
Updating LICENSE, travis build file, making better use of git ignores, and remove unused build target
Removing @author tags.  Use the commit history for a changelog.
Moving files from build folder to /
Adding min build target to product a Guzzle only phar with no autoloader
[Common] Accepting ZF1 or ZF2 cache in ZendCacheAdapter
[Common] Optimizing Stream wrapper and EntityBody abstractions.
[Common] [Http] Migrating from Guzzle event system to the Symfony2 event dispatcher
[Common] Moved Inflector and Inspector to Service namespace
[Http] Simplifying Guzzle\Guzzle curl detection
[Http] Removing Guzzle\Http\Pool and now using Guzzle\Http\Curl\CurlMulti
[Http] The helper methods from Guzzle\Http\Message\RequestFactory have been removed to prevent confusion and encourage developers to use Guzzle\Http\Client to create requests.
[Http] Clients can now send one or more requests in an array using the send() method, so the batch() method was removed.
[Http] Updating curl multi to allow blocking calls while sending other transfers
[Http] Making the Request::hasHeader method more intuitive.  Guzzle\Http\Message\AbstractMessage::hasHeader() now returns true if the header is found using exact matching.  If the header is found using a regex or case-insensitive match, then it will return the name of the found header.
[Http] Removing content-type guessing from EntityBody based on file extension and solely using finfo.
[Http] Adding basic auth plugin
[Http] Cleaning up CookieJar and CurlMulti
[Http] Removing custom rawurlencode from QueryString because PHP 5.3 now properly deals with tilde characters.
[Http] Minor optimization to parsing messages in RequestFactory
[Http] Adding Guzzle\Http\Client for developers that don't need commands or service descriptions
[Http] Making it easier to set a global User-Agent header for a Guzzle\Http\Client
[Http] Fixing the discrepancies between the ClientInterface and Guzzle\Http\Client
[Http] Adding the ability to set and retrieve tokenized headers from Requests and Responses
[Service] Ditching NIH filters and using the Symfony2 validator
[Service] Moving most service building logic to the ServiceBuilder::factory method so that it is easier to build custom config readers.
[Service] Allowing deep nested command inheritance.
[Service] Cleaning up Inflector caching.
[Service] Getting rid of concept of can_batch because everything is now sent in parallel.
[Service] Adding a JSON description builder.
[Service] Cleaning up ResourceIteratorApplyBatched.
[Service] Removing caching stuff from ServiceBuilder because the data being cached is extremely fast to generate.
[Service] Added a method to serialize the ServiceDescription in case a ServiceDescription needs to be cached in an application.
[Service] Making description builders use static methods.
[Service] Adding support to include other description files for XML and JSON description builders.
[Service] Adding support for filters to ApiCommands
[Service] Using {{}} instead of $. to reference other services as a dependency for another service
2012-01-14 13:57:05 -06:00
Michael Dowling
3946b93bbf [Tests] Getting code coverage back to 100% 2011-11-13 16:46:37 -06:00
Michael Dowling
b5f0507a0c [Tests] Adding .travis.yml
Removing logging from node server
Fixing history plugin test
Fixing bzip2 test
Fixing timestamp test
2011-11-13 13:30:34 -06:00
Michael Dowling
64bfbbd466 [Tests] Fixing tests after PHPUnit upgrade 2011-11-13 00:38:41 -06:00
Michael Dowling
503c16668e [Tests] Adding `@server annotation to tests that require access to the node.js server. If you cannot install node.js, use phpunit --exclude-group server` to run the other tests. 2011-11-12 19:31:00 -06:00
Michael Dowling
efe275f300 [Http] Making EntityBody create an empty temp stream by default if no resource is provided 2011-11-11 10:16:11 -06:00
Michael Dowling
af5cdbda6e [Http] Adding HistoryPlugin. Closes #8 2011-11-10 23:04:19 -06:00
Michael Dowling
b03aa41f6b Adding a way to limit the maximum number of curl handle connection reuses per host. 2011-09-07 14:30:43 -05:00
Michael Dowling
56bcafb095 Fixing more unit tests 2011-08-31 13:06:02 -05:00
Michael Dowling
9b5732423b Releasing curl handles between curl factory tests 2011-08-31 09:56:50 -05:00
Michael Dowling
2722230aff More tweaks to get tests passing on CentOS 2011-08-30 21:07:55 -05:00
Michael Dowling
bea15cd54d Fixing unit tests for CurlFactory so that they work in my CentOS testing environment 2011-08-30 20:28:54 -05:00
Michael Dowling
4f87cb420d Cleaning up some of the HTTP namespace 2011-08-28 19:33:42 -05:00
Michael Dowling
a7ae469671 Removing verbose docblock headers from every class 2011-07-07 17:17:28 -05:00
Michael Dowling
6136f7045a [Http] [Tests] Fixing a unit test that was not properly setting a mock response. Adding a convenience argument to EntityEnclosingRequest::setBody() so that you can set the body and the Content-Type at the same time. Adding more code coverage to EntityEnclosingRequest to ensure that subsequent requests can be sent using the same request object. 2011-05-08 19:02:41 -05:00
Michael Dowling
88bcaa8390 [Http] Adding a fix for parsing the Cache-Control directives of a message that has multiple Cache-Control headers. Closes #2. 2011-04-20 20:37:05 -05:00
Michael Dowling
05d4f1038b [Http] [Tests] Removing deprecated assertType calls in tests. Moving Guzzle\Http\Server related code to Guzzle\Tests\Http as it is not used for anything but testing. 2011-04-13 19:33:48 -05:00
Michael Dowling
8395dca859 [Http] Ensuring that cloned requests will attach observers to the cloned request using the same priority as the original request for each event observer. 2011-04-11 17:01:35 -05:00
Michael Dowling
3f224b7c8c [Http] Emitting the request.before_send event from Guzzle\Http\Pool\Pool when requests are being sent in a pool. This helps to ensure that plugins behave the same when they are dealing with single requests, request pools, commands, or command sets. This change resolves guzzle-aws issue: https://github.com/guzzle/guzzle-aws/issues#issue/5 2011-04-09 17:56:49 -05:00
Michael Dowling
0bc9e1fb80 [Http] Using streaming hash functions to calculate the Content-MD5 hash of an EntityBody. This is safer because it does not require that the entire contents of a stream be loaded into memory to calculate the MD5 hash. 2011-04-08 10:05:41 -05:00
Michael Dowling
6bff5cbd83 [Http] Making the Content-MD5 validation plugin more readable and adding more test coverage 2011-04-07 23:27:01 -05:00
Michael Dowling
85ed138b78 [Http] Adding a Content-MD5 validator plugin to ensure that the response body was not modified in transit 2011-04-07 23:20:20 -05:00
Michael Dowling
6e02eee711 [Http] Removing the MultipartFormData class cURL will handle this better 2011-03-28 22:50:19 -05:00
Michael Dowling
55523cf8bf [Http] Removing readChunked from EntityBody as this is handled by cURL 2011-03-28 22:44:40 -05:00
Michael Dowling
a1adbca83f [Http] Removing the functionality that determined if a file should be compressed based on extension. Adding more extensions to the mime type map. 2011-03-28 22:42:33 -05:00
Michael Dowling
930494c795 [Common] [Http] Adding coverage to Collection. Not forcing a request to be set to new in order to send it again. 2011-03-28 21:23:03 -05:00
Michael Dowling
7c0c64efbf [Http] Removing CurlConstants class 2011-03-28 21:00:21 -05:00
Michael Dowling
1a7953c57a [Http] Updating cookie jars and the cookie plugin to store cookies in jars with a single cookie per row to make storing, retrieving, and updating cookies easier. When a cookie version 2 is encountered with multiple cookie values in one Set-Cookie header, the cookie will be broken up into multiple cookies for the cookie jar. 2011-03-24 22:45:55 -05:00
Michael Dowling
620e13057c [Http] [Service] Adding more coverage to Url. Fixing CookiePlugintest. Allowing XML based commands to extend previously defined commands. 2011-03-23 17:24:36 -05:00
Michael Dowling
da781d6202 [Common] [Http] Performance enhancements. Adding a match flag to Collection operations instead of determining how a key should match. 2011-03-23 14:19:14 -05:00
Michael Dowling
f53d169978 [Http] [Service] Better handling in the RequestFactory to generate entity enclosing requests using various body variable types. Passing an API command to a concrete command class when working with service descriptions. Adding more tests. 2011-03-22 11:23:06 -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
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
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
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
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
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
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
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