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

2520 Commits

Author SHA1 Message Date
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
Gildas Quéméner
ae37637b99 Fixed wrong createRequest call 2014-11-08 18:02:07 +01:00
Michael Dowling
76ceceea9d Adding note about handler reuse. Closes #899 2014-11-06 21:01:13 -08:00
Michael Dowling
6c72627de1 5.0.3 release 5.0.3 2014-11-03 23:09:15 -08:00
Michael Dowling
1330e3a1fe Query strings should be treated an un-encoded by default.
This change updates query strings so that they are treated as un-encoded
values by default where the value represents an un-encoded value to send
over the wire. A Query object then encodes the value before sending over
the wire. This means that even value query string values (e.g., ":") are
url encoded. This makes the Query class match PHP's http_build_query
function. However, if you want to send requests over the wire using
valid query string characters that do not need to be encoded, then you
can provide a string to Url::setQuery() and pass true as the second
argument to specify that the query string is a raw string that should
not be parsed or encoded (unless a call to getQuery() is subsequently
made, forcing the query-string to be converted into a Query object).
2014-11-03 23:04:06 -08:00
Michael Dowling
2ad4f7d6de Merge pull request #891 from jdelaune/patch-1
Does not pass in emitter
2014-11-01 10:43:07 -07:00
Jordan de Laune
f1c46e5127 Does not pass in emitter 2014-11-01 15:13:12 +00:00
Michael Dowling
90b5b961db 5.0.2 release 5.0.2 2014-10-30 20:26:57 -07:00
Michael Dowling
2c7b9271de Prepping for release. And fixing chag command 2014-10-30 20:26:30 -07:00
Michael Dowling
241611c4cd Improving URL encoding of path and query.
This commit updates path and query string encoding to better handle
strings that are already percent encoded, and now allows for all of the
characters valid for paths and queries specified in RFC 3986 to be
present in a URL without being encoded.
2014-10-30 16:52:02 -07:00
Michael Dowling
55d00ea7ae Merge pull request #884 from jklein/patch-1
Fixing typos in the FAQ
2014-10-30 14:38:37 -07:00
Michael Dowling
ace8fa75a4 Merge pull request #886 from Zlender/status_code_integer
Switch status code set/get to integer fixes #881
2014-10-30 14:38:12 -07:00
Rok Zlender
8777b972a3 Switch status code set/get to integer fixes #881 2014-10-30 17:17:19 -04:00
Michael Dowling
0b02466494 Query strings allow "/" characters 2014-10-29 21:38:20 -07:00
Jonathan Klein
3f1c17c4a6 Fixing typos in the FAQ
The extra trailing quote marks are unnecessary/invalid, and break the syntax highlighting in the example (and would cause a syntax error in actual code).
2014-10-29 11:11:35 -04: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
3e5a4bba47 Using the format from keepachangelog.com 2014-10-26 22:56:17 -07:00
Michael Dowling
eeb136826e Adding a Pool::send convenience method. Closes #874 2014-10-24 16:39:53 -07:00
Michael Dowling
2421aca0cf Merge pull request #878 from GrahamCampbell/patch-1
Fixed the branch alias
2014-10-24 10:25:49 -07:00
Graham Campbell
7d9539da5d Fixed the branch alias 2014-10-24 18:24:14 +01:00
Michael Dowling
9cde649d34 Merge pull request #871 from alekseykuleshov/bugfix/issue-with-NET-MVC-4-multipart-uploads
Fixed issue with NET MVC 4 multipart uploads
2014-10-21 10:23:57 -07:00