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

978 Commits

Author SHA1 Message Date
Michael Dowling
b572e3c8df Moving cookie jars, cleaning up expect, adding docs, validating auth schemes. 2014-02-15 23:40:24 -08:00
Diego Agulló
ed3a1a731e Add newly set ServiceDescription objects to CompositeFactory (#565). 2014-02-16 03:08:22 +01:00
Michael Dowling
e801e7796b Renaming client and server response exceptions
- Adding more docs on error handling
- Tightening down the client interface to only allow RequestExceptions to be
  thrown from a client during a send() method. This makes error handling much
  easier and predictable.
2014-02-15 11:59:31 -08:00
Michael Dowling
d5834212e0 Tweaking curl implementation 2014-02-14 18:58:36 -08:00
Michael Dowling
ef245ab292 Moving header parsing static functions to AbstractMessage so that they are more accesible to request and response objects 2014-02-13 23:45:09 -08:00
Michael Dowling
c6cf0c6da2 Updating HTTP method signature to be simpler and more consistent
- HTTP method based signatures like get(), put(), etc.. accept a URL,
  and array of request options. createRequest() is similar but also requires
  a method string.
- Renamed request events to 'before', 'complete', 'error', and 'headers.
- Renamed the associated event classes.
- Adding more docs.
2014-02-13 23:37:34 -08:00
Michael Dowling
7368075cf9 Replacing HeaderValuesInterface with an array and adding docs.
- Instead of using a HeaderValues object for header values, I've added an
optional argument to getHeader() that specifies whether or not to return
a header as a string or an array.
- Adding the start of the new documentation.
2014-02-12 20:07:05 -08:00
Michael Dowling
bf42ea6f40 Adding test to ensure that a custom parallel_adapter can be specified on a client 2014-02-11 22:55:00 -08:00
Michael Dowling
da9e30f98e Renaming BatchAdapter stuff to ParallelAdapter 2014-02-11 22:51:50 -08:00
Michael Dowling
e66d734d39 Cleaning up URL 2014-02-11 21:19:42 -08:00
Michael Dowling
01a5dddefa Merge pull request #544 from guzzle/empty_query_string
Changes empty query string value serialization
2014-02-11 10:14:34 -08:00
Michael Dowling
45e2733bd1 Adding retry tests 2014-02-10 23:40:10 -08:00
Michael Dowling
1f08b4f91f Making the allow_redirects request option more useful and uniform 2014-02-09 23:05:23 -08:00
Michael Dowling
7640f1a5df Moving TransactionIterator to Guzzle\Http\Adapter 2014-02-09 19:40:09 -08:00
Michael Dowling
648bf07929 Adding missing test and ensuring that a request body seeks to 0 before sending 2014-02-09 16:44:46 -08:00
Michael Dowling
d312987183 Adding test to ensure that the fragment is stripped when using curl 2014-02-09 16:36:15 -08:00
Michael Dowling
ce867392eb MessageTrait should really be AbstractMessage 2014-02-09 16:31:57 -08:00
Michael Dowling
4f1e114fe1 Doing a better job of passing custom request options
- Better handling of request options passed from client to messages and
  adapters.
- CurlAdapter now converts string keys that start with CURL to the equivalent
  CURL_* constant value.
- Added a few extension points to requests and the CurlAdapter
2014-02-09 16:05:42 -08:00
Michael Dowling
cdddc896c3 Adding missing request factory tests 2014-02-08 12:01:15 -08:00
Michael Dowling
d175175c6e Adding event tests 2014-02-08 10:45:02 -08:00
Michael Dowling
9afa37f676 Adding tests for mock and fake adapter 2014-02-08 10:19:12 -08:00
Michael Dowling
186767a037 Adding some missing tests 2014-02-08 01:13:36 -08:00
Michael Dowling
cd74af3254 Adding tests for TransactionIterator 2014-02-08 01:07:51 -08:00
Michael Dowling
bdf0092410 Renaming getListeners to listeners 2014-02-08 00:31:02 -08:00
Michael Dowling
53c8ebd67e Removing dependency on Symfony EventDispatcher
- Created a customer EventDispatcher based on a mix of Symfony
  and Evenement.
- Removed Guzzle\Version and using a constant in functions.php
2014-02-08 00:14:16 -08:00
Michael Dowling
734b94f8a7 Adding the ability to append an array value using setPath 2014-02-07 15:33:30 -08:00
Michael Dowling
246cd09118 Merge pull request #550 from kkopachev/rfc6265-cookie-path
RFC6265 compliant cookie default path and path mathing
2014-02-07 11:57:56 -08:00
Konstantin Kopachev
9617693d63 Implement cookie path matching algo described in RFC6265 s5.1.4 2014-02-07 10:36:58 -08:00
Michael Dowling
0014d3962a Bringing changes over from 3.0 2014-02-06 23:41:28 -08:00
Michael Dowling
f57974fe58 Fixing test 2014-02-06 21:53:08 -08:00
Pascal Borreli
6b21f3c25b Fixed typos 2014-02-06 20:23:57 +00:00
Michael Dowling
0994a9e138 Adding getConfig() and setConfig() to ClientInterface
Cleaning up config array after processing input data.
Removing getBaseUrl() from ClientInterface. Use getConfig('base_url')
Moving cacert out of the Resources folder and just into Http
2014-02-05 23:53:24 -08:00
Konstantin Kopachev
2bc6f68f8d Add expected error string for ubuntu systems 2014-02-05 10:50:30 -08:00
Konstantin Kopachev
737166ec8a Skip invalid json decode test if non-strict decoder presented 2014-02-05 10:43:37 -08:00
Konstantin Kopachev
a0de0b8ef5 Compute the default cookie path as described in RFC6265 2014-02-05 10:29:46 -08:00
Michael Dowling
24d1aac0ed Cleaning up client privates and configuration checks 2014-02-05 01:25:40 -08:00
Michael Dowling
ced33c6739 Renaming plugins to subscribers 2014-02-04 23:30:03 -08:00
Michael Dowling
8c35bb6ac6 Removing a request event that was only used for testing 2014-02-04 23:10:33 -08:00
Michael Dowling
476bfb12ac Guarding against the case of a cookie with the same name but with different attributes like domain, path, etc... 2014-02-04 22:00:12 -08:00
Michael Dowling
190bb2bd76 Merge remote-tracking branch 'unixo/master' into remove_empty_cookie 2014-02-04 21:40:10 -08:00
Ferruccio Vitale
805b34a872 Added test for empty-cookies removal 2014-02-04 09:20:28 +01:00
Michael Dowling
6a86b5410a Reversing the if logic in addPath 2014-02-03 23:42:32 -08:00
Michael Dowling
dc1d824277 Changes empty query string value serialization
Previously, the only way to se empty query string variables that had
no value (e.g., "foo" rather than "foo=") was to use the magic
"_guzzle_blank_" variable. This variable was then added in 3.8.1 to
query string values when parsing a query string so that when the
query string is again cast to a string it would not include the "="
sign. This works, but introduces pain points when working with these
parsed query strings because the data contained in the query string
object now needs special handling (you must check if the value is
"_guzzle_blank_" to see if it should actually be empty). This change
introduced an asymmetry between how a query string is serialized vs
how it is inspected.

The "_guzzle_blank_" logic was introduced due to #96. I believe the
change introduced as a result was the wrong decision and this commit
hopes to address it.

This change now makes `false`, `null`, and `"_guzzle_blank_"` all
act as query string fields that contain no value (meaning no trailing
equal sign). This change marked the use of `"_guzzle_blank_"` as
deprecated. If you still wish for an emtpy query string value that
includes a trailing "=", then use an empty string (i.e., `""`).

Here's an example of how the proposed change will affect query string
serialization:

Given a `Guzzle\Http\QueryString` object `$q`, adding the values on
left will serialize to the string on the right:

* `$q->set('foo', null)` => `"foo"` (previously `"foo="`)
* `$q->set('foo', false)` => `"foo"` (previously `"foo="`)
* `$q->set('foo', '_guzzle_blank_')` => `"foo"` (unchanged)
* `$q->set('foo', '')` => `"foo="` (unchanged)
2014-01-30 13:37:49 -08:00
Jamie Hannaford
3424cc47cb Only allow strings to be passed as path arg, but allow for "0" 2014-01-30 09:56:56 +01:00
Jamie Hannaford
17b483600d Allows for 0 integers to be added as URL paths 2014-01-29 16:47:38 +01:00
Michael Dowling
1cad576525 Adding Connection: close when using HTTP/1.1 and PHP streams 2014-01-28 14:14:17 -08:00
Michael Dowling
028195b32b Escaping the regex delimiter when matching Cookie domains. Closes #526. 2014-01-23 10:29:07 -08:00
Michael Dowling
cd97afb9dd Setting empty query string values that contain no "=" to the special blank string so that it is represented correctly as a string. Closes 529. 2014-01-15 15:31:19 -08:00
Michael Dowling
da029747d8 Merge pull request #524 from christeredvartsen/set-mock-response-fix
Allow a single instance of a Response object to be set as the next mocked response
2014-01-09 13:31:09 -08:00
Christer Edvartsen
aef2879c45 Allow a single instance of a Response object to be set as the next mocked response 2014-01-09 22:22:48 +01:00