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
0b02466494 Query strings allow "/" characters 2014-10-29 21:38:20 -07:00
Michael Dowling
bd29143523 Do not overwrite existing header with POST
Existing 'application/x-www-form-urlencoded' content-type headers are no
longer overwritten when applying POST headers to a request before
sending. This allows developers to set custom attributes on each request
(e.g., charset).

Closes #877
Closes #879
2014-10-28 19:45:53 -07:00
Michael Dowling
eeb136826e Adding a Pool::send convenience method. Closes #874 2014-10-24 16:39:53 -07:00
Michael Dowling
bcdc7f3c6b Fixing transfer_info vs transfer_stats.
Closes #866
2014-10-16 10:54:28 -07:00
Michael Dowling
9fc544db12 Fixing error and end events for network errors.
When a networking error occurs, the future response that is created
for the transaction does not receive an exception until after the
future is waited on. When calling getResponse() in an event that
is emitted after a networking error, the response returned will
be a future with no actual data to use and throws when accessed.
This commit updated these events to return null if the response
of the transaction is a future. In these cases, it means that the
response did not complete successfully. I've also added a new method
to make this more explicit: hasResponse().

Closes #867.
2014-10-16 10:42:50 -07:00
Michael Dowling
2a8a75ee4c Adding missing coverage and accepting adapter as constructor arg 2014-10-12 20:02:40 -07:00
Michael Dowling
8f7b953695 Merge conflict fixes 2014-10-12 19:50:12 -07:00
Michael Dowling
fa8f06609a Merge branch 'ring' into 5-0
Conflicts:
	src/Adapter/Curl/CurlAdapter.php
	src/Adapter/Curl/CurlFactory.php
	src/Adapter/Curl/MultiAdapter.php
	src/Adapter/MockAdapter.php
	src/Adapter/StreamAdapter.php
	src/Event/HeadersEvent.php
	tests/Adapter/Curl/CurlAdapterTest.php
	tests/Adapter/Curl/CurlFactoryTest.php
	tests/Adapter/Curl/MultiAdapterTest.php
	tests/Adapter/Curl/RequestMediatorTest.php
	tests/Adapter/FakeParallelAdapterTest.php
	tests/Adapter/MockAdapterTest.php
	tests/Adapter/StreamAdapterTest.php
	tests/Adapter/StreamingProxyAdapterTest.php
	tests/Adapter/TransactionIteratorTest.php
2014-10-12 19:47:31 -07:00
Michael Dowling
2c2f1d7c47 Updating to use RingPHP and s/adapter/handle/g 2014-10-12 18:27:08 -07:00
Michael Dowling
22389c611c Simplifying the Request FSM
FSM is now passed to a client as a callable.
FSM now requires an adapter and message factory rather than a function.
FSM now is merged with RequestFsm to simplify the API (at least for now)
Removed unnecessary circular reference from client/FSM.
2014-10-11 16:01:20 -07:00
Michael Dowling
286525b387 Adding a ConnectException 2014-10-10 00:35:58 -07:00
Michael Dowling
27c4cc3cc4 Updating for Guzzle streams and ring updatres 2014-10-09 12:46:36 -07:00
Michael Dowling
ad3ab69ccb Fixing tests 2014-10-08 18:56:23 -07:00
Michael Dowling
acc07b324b Adding attach() to PostBody 2014-10-08 14:26:14 -07:00
Michael Dowling
46bead5c15 Updating for Guzzle-Ring changes 2014-10-06 22:25:04 -07:00
Michael Dowling
e2561faf8e PSR-7 compliance 2014-10-06 21:07:58 -07:00
Michael Dowling
eaaf949638 removing request "cancellation" 2014-10-06 17:34:56 -07:00
Michael Dowling
84d2531f39 Trying to fix stuff 2014-10-06 17:13:24 -07:00
Michael Dowling
87470bf043 Ensuring exceptions are not thrown in pool 2014-10-05 23:49:15 -07:00
Michael Dowling
17fe94cf01 Not relying on validated deferred 2014-10-05 18:59:19 -07:00
Michael Dowling
b1fb453098 Fixing Pool tests 2014-10-05 18:51:07 -07:00
Michael Dowling
0998cfccf9 Updating FSM to run and stop at until, not run through it.
Performance tuning.
2014-10-05 18:28:11 -07:00
Michael Dowling
86600dec15 Starting to fix the pool object 2014-10-05 17:24:34 -07:00
Michael Dowling
6d1cf961a5 Getting most of the tests passing 2014-10-05 16:37:25 -07:00
Michael Dowling
4c62a79d16 Fixing max_handles and proxying 2014-10-05 16:33:10 -07:00
Michael Dowling
f52625f59b Fixing cancelling support 2014-10-05 14:48:36 -07:00
Michael Dowling
dd8cfa8cc6 Merge pull request #834 from michaelmoussa/master
Allow optional configuration of the pruneThreshold for releasing multihandles.
2014-10-05 12:23:03 -07:00
Michael Dowling
b4de302c8c Using STDOUT only if defined. Closes 846 2014-10-05 12:21:02 -07:00
Michael Dowling
3c0acec6a0 Using getenv instead of $_SERVER 2014-10-05 12:18:17 -07:00
Michael Dowling
c38ff16378 Merge pull request #838 from GrahamCampbell/cs
CS Fixes
2014-10-05 00:16:12 -07:00
Michael Dowling
5251f1067d Performance and updating to latest changes
Removing double-dispatch from MessageFactory and using a switch.
2014-10-05 00:11:40 -07:00
Michael Dowling
311122efa5 Fixing cancellation and some tests 2014-10-04 12:16:39 -07:00
Michael Dowling
7f863435c9 Fixing RingBridge tests 2014-10-03 16:56:29 -07:00
Ján Koščo
06e7e28e95 Extend the exception with error information when parsing XML 2014-10-03 14:48:39 +02:00
Ján Koščo
1eacc32f1c Minor CS improvements 2014-10-03 14:44:25 +02:00
Michael Dowling
d57c66dbc8 Fixing intercepting with cancelled response. Adding some tests 2014-10-03 00:43:28 -07:00
Michael Dowling
ac261dc68e Trying to get stuff working 2014-10-02 22:10:54 -07:00
Michael Dowling
43c7f468ae Updating to use future proxies 2014-10-02 21:14:42 -07:00
Michael Dowling
0a8b197766 More progess 2014-10-02 10:40:43 -07:00
Michael Dowling
de780704e1 React promises 2014-10-02 00:42:11 -07:00
Michael Dowling
bfef02f98b Ensuring that futures are created or not created based on the future request attribute 2014-10-01 17:24:47 -07:00
Graham Campbell
51c641b191 CS fixes 2014-10-01 22:07:32 +01:00
Michael Dowling
244bf0228e Using getHeaderAsArray 2014-10-01 08:52:45 -07:00
Michael Dowling
175fbc8023 Updating to use interface changes 2014-09-30 10:52:33 -07:00
Michael Moussa
039462e5df Make max handles configurable at the MultiAdapter level. 2014-09-25 02:09:37 -04:00
Michael Dowling
514ee50a5a Reading body on MockAdapter only after invoking callback. Closes #826 2014-09-24 21:48:09 -07:00
Michael Dowling
21f655d939 Rewinding stream on complete on curl adapters to match the stream adapter. Closes #830 2014-09-24 21:35:39 -07:00
Michael Dowling
dbb6a30041 Don't deref cancelled responses 2014-09-23 17:15:41 -07:00
Michael Dowling
10c903624c Adding a cancelled response class 2014-09-23 01:20:28 -07:00
Michael Dowling
4e4885badd Cleaning up the FSM to use an explicity intercept state transition 2014-09-22 15:51:57 -07:00