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

2490 Commits

Author SHA1 Message Date
Michael Dowling
1a9ad6b553 WIP refactor for PSR-7 2015-02-25 14:50:44 -08:00
Michael Dowling
646ca5302b More cleanup of creating a default handler 2015-02-08 15:01:30 -08:00
Michael Dowling
64958c1d55 Cleaning up resolving a default handler 2015-02-07 11:48:59 -08:00
Michael Dowling
9b279d3989 Optimization for setPath 2015-02-07 11:36:27 -08:00
Michael Dowling
c75e810db6 Merge pull request #974 from njohansson/patch-1
MockAdapter has been renamed to MockHandler
2015-02-06 15:40:07 -08:00
njohansson
4037688c6f MockAdapter has been renamed to MockHandler 2015-02-06 10:35:58 +01:00
Michael Dowling
475b29ccd4 5.2.0 release 5.2.0 2015-01-27 17:03:29 -08:00
Michael Dowling
2714378ff2 5.2.0 release 2015-01-27 17:02:22 -08:00
Michael Dowling
15f7a25245 Merge pull request #967 from guzzle/prevent-pool-recursion
Prevent pool recursion by detecting retries
2015-01-26 17:18:18 -08:00
Michael Dowling
c681b34ba0 Prevent pool recursion by detecting retries 2015-01-24 21:52:59 -08:00
Michael Dowling
e38282adb2 Simplifying request sending.
- Removing some duplication
- Nested futures are now resolved in the client.
- Simplified injecting in futures in request events and removing now
  extraneous conditional.
2015-01-23 17:07:13 -08:00
Michael Dowling
af4e03c6b7 Removing extraneous return statement 2015-01-23 11:41:54 -08:00
Michael Dowling
25410a06aa Merge pull request #965 from guzzle/refactor-fsm-with-gotos
Updated the RequestFSM to use gotos.
2015-01-23 11:19:42 -08:00
Michael Dowling
8edf6d2bbc Updated the RequestFSM to use gotos.
- This commit updates the request FSM to use goto statements to reduce
  function call overhead and removes 5 stack frames from each request.
- Removed `$finalState` from RequestFSM::__invoke
- Finishing FSM transitions is not handled in the FSM rather than the
  RingBridge.
- Slightly related to #964
2015-01-23 10:57:12 -08:00
Michael Dowling
14f66ae8fd URI template arrays always require a list of two elements. Closes #956 2015-01-11 15:52:51 -08:00
Michael Dowling
d15519338c Adding weird fix for #955 2015-01-11 15:44:44 -08:00
Michael Dowling
d86e62bee6 Removing extra check because PHP is broken 2015-01-11 14:23:16 -08:00
Michael Dowling
d446779ad6 Merge pull request #950 from guzzle/generic_apply_headers_body
Adding AppliesHeadersInterface
2015-01-02 12:25:40 -08:00
Michael Dowling
2959c111de Merge pull request #952 from hannesvdvreken/patch-1
More consistent use of backticks in changelog markdown file
2014-12-31 10:14:14 -08:00
Hannes Van De Vreken
87f0fe8c02 More consistent use of backticks 2014-12-26 20:06:01 +01:00
Michael Dowling
e8c5aaa9e6 Making it possible to create custom streams that apply request headers
during the before event rather than hardcoding it to only look for
PostBodyInterface.
2014-12-22 11:40:59 -08:00
Michael Dowling
f1085bb4e0 5.1.0 release 5.1.0 2014-12-19 12:27:15 -08:00
Michael Dowling
7b6b3b93a0 Updating changelog 2014-12-19 12:26:15 -08:00
Michael Dowling
5f0c9f04cc Adding the ability to limit which redirect protocols are allowed. Closes #841 2014-12-19 12:22:50 -08:00
Michael Dowling
dcf00ca764 Updating changelog 2014-12-19 12:04:26 -08:00
Michael Dowling
cd167aab57 Merge branch 'nested_futures' 2014-12-19 11:02:55 -08:00
Michael Dowling
e3182afcda Waiting on deep futuress when necessary to deal with retries.
This commit updates the request FSM to resolve deep futures to
ensure that retried synchronous requests are waited on correctly
and produce side-effects when expected. Previously the results of a
retried request were not being properly brought up to the outermost
layer when a client was attempting to dereference a future because the
request was not a future request.
Adding a way to get the number of retries to events
2014-12-19 10:59:24 -08:00
Michael Dowling
3e5712b198 Merge pull request #943 from elyobo/dynamic-pool-size
Allow dynamic pool sizing.
2014-12-15 13:36:24 -08:00
Liam O'Boyle
b2781f7537 Allow dynamic pool sizing.
Allows the number of requests allowed in a pool to vary over time by
retrieving the current pool size from a callback instead of a single
constant number.

This allows us to amend the number of requests ongoing according to our
needs, e.g. by responding to rate limiting information provided by an
upstream API.

Changes are

* Allow a callback to be passed in to specify the pool size instead of a
  constant pool size.
* As each request returns, add enough new requests to the queue to fill
  up to the current pool size limit.
2014-12-16 08:10:08 +11:00
Michael Dowling
2867b52a3a Merge pull request #939 from Romashka/patch-2
Fixed typo
2014-12-13 12:03:47 -08:00
Michael Dowling
b46d273269 Merge pull request #940 from elyobo/pool-constructor-docs
Corrects event docs for Pool constructor.
2014-12-13 12:03:34 -08:00
Liam O'Boyle
010b17db40 Corrects event docs for Pool constructor.
* Changes "after" to "complete"
* Adds missing "end" event
2014-12-13 21:53:23 +11:00
Ivan Romanko
4910ab5ad0 Fixed typo 2014-12-11 10:10:24 +03:00
Michael Dowling
4b96b92075 Merge pull request #937 from guzzle/null_override
Setting a request option to null will ensure it is not set.
2014-12-10 14:52:17 -08:00
Michael Dowling
8c931e3725 Setting a request option to null will ensure it is not set.
This commit makes it so that setting a request option to null will
ensure that the option is not set by the single request or as a result
of merging in default client settings (like being able to override proxy
on a one-off basis).
2014-12-09 17:06:35 -08:00
Michael Dowling
670220f70c Not forcing typehint and adding test to ensure URL and query string can be customized 2014-12-09 11:31:02 -08:00
Michael Dowling
0c9af4fb51 Pulling in URL fix 2014-12-09 11:23:03 -08:00
Jamie Hannaford
914dac90ac Allow "0" (and any other falsy) URI paths 2014-12-09 13:59:58 +00:00
Michael Dowling
f4088880c5 Merge pull request #931 from vlajos/typofixes-vlajos-20141204
typofixes - https://github.com/vlajos/misspell_fixer
2014-12-04 13:55:33 -08:00
Veres Lajos
c066ae4c71 typofixes - https://github.com/vlajos/misspell_fixer 2014-12-04 21:43:57 +00:00
Michael Dowling
70c02ab90b Fixing packager for React update 2014-12-01 20:12:40 -08:00
Michael Dowling
c5c5c09629 Merge pull request #929 from hakeda/fix-typos
Fix typos
2014-12-01 10:41:57 -08:00
hakeda
c92fd22be3 Fix typos 2014-12-01 11:10:49 +00:00
Michael Dowling
bb4f6c82af Merge pull request #912 from richardmiller/update-interface-in-docs
Update some namespaces in docs
2014-11-17 15:22:53 -08:00
richardmiller
186c2451c9 Update some namespaces in docs 2014-11-17 23:17:15 +00:00
Michael Dowling
7aafcc893f Cleaning up pool and wrapping exceptions in "end"
Addresses #903
2014-11-17 00:16:47 -08:00
Michael Dowling
8467cfec77 Preventing infinite recursion in Pool.
When requests are intercepted in a Pool, it can result in infinite
recursion. This commit modifies the Pool to inspect the promise type of
a request to see if it was completed or not. If the request is completed
after sending, then we wait on the request to emit any pending events
and use `goto` to send the next request and prevent the stack from
growing.

Closes #905.
2014-11-16 23:43:56 -08:00
Michael Dowling
c76c500986 Merge pull request #906 from richardmiller/docs-attaching-event-subscriber
Add attaching and detaching event subscribers to the docs
2014-11-15 10:10:24 -08:00
richardmiller
906c257798 Add attaching and detaching event subscribers to the docs 2014-11-14 11:00:31 +00:00
Michael Dowling
d0581b6b4b Merge pull request #900 from gquemener/patch-1
Fixed wrong createRequest call
2014-11-08 13:55:50 -08:00