953 Commits

Author SHA1 Message Date
Mattia
6e3c40f159
Separate Request and Response bodies (#847) 2019-02-20 16:00:58 +00:00
Mattia
6e4a2aaa05 Refactor Adapter as final endpoints (#846)
* Refactors Adapters:
* They're now final endpoints.
* They don't need to call `@app.call` anymore.
* They don't inherit from `Faraday::Middleware` anymore.
2019-02-19 10:48:52 +01:00
iMacTia
0474e03d2d Use require instead of require_relative. 2019-01-14 09:17:05 +00:00
iMacTia
5ace0ea5ab [Ruby 2.7] Stops using &Proc.new for block forwarding. 2019-01-13 17:39:29 +00:00
iMacTia
1f8aae53ae Refactors params encoders into multiple files. 2019-01-13 17:04:33 +00:00
iMacTia
e14fb01063 Removes deprecated Faraday::Builder.
Refactors options into multiple files.
2019-01-13 16:59:12 +00:00
Mattia
793e6ba9c9
Add new error classes (#841)
* Removes sub-class constants definition from `Faraday::Error`. A sub-class (e.g. `ClientError`) was previously accessible
either through the `Faraday` module (e.g. `Faraday::ClientError`) or through the `Faraday::Error` class (e.g. `Faraday::Error::ClientError`).
The latter is no longer available and the former should be used instead, so check your `rescue`s.
* Introduces a new `Faraday::ServerError` (5xx status codes) alongside the existing `Faraday::ClientError` (4xx status codes).
Please note `Faraday::ClientError` was previously used for both.
* Introduces new Errors that describe the most common REST status codes:
  * Faraday::BadRequestError (400)
  * Faraday::UnauthorizedError (401)
  * Faraday::ForbiddenError (403)
  * Faraday::ProxyAuthError (407). Please note this raised a `Faraday::ConnectionFailed` before.
  * Faraday::UnprocessableEntityError (422)
2019-01-04 17:24:38 +00:00
Mattia
f1b2657523
Feature/#762 rspec (#832) 2018-11-26 17:11:35 +00:00
iMacTia
554780253f Merge branch 'master' of https://github.com/lostisland/faraday into 1.0 2018-11-26 15:58:58 +00:00
Col
f18a248c36 Expose pool_size as a option for the NetHttpPersistent adapter (#834) 2018-11-26 15:55:26 +00:00
Olle Jonsson
e77ac3d9e8 [1.0] [DOC] SSLOptions, Utils::Headers, Utils::ParamsHash (#826) 2018-10-19 09:20:33 +01:00
iMacTia
afe53e9020 Merge branch 'master' of https://github.com/lostisland/faraday into 1.0
# Conflicts:
#	.travis.yml
#	lib/faraday/options.rb
2018-09-21 09:29:29 +01:00
Mattia
81274c93a2
Version bump to 0.15.3 2018-09-19 16:10:22 +01:00
Bart
e306bd6d6b Add support for Ruby 2.6 Net::HTTP write_timeout (#824) 2018-09-19 16:09:42 +01:00
Olle Jonsson
7974c7a95c [1.0] YARD docs for error classes (#819) 2018-09-11 12:48:58 +01:00
Olle Jonsson
3b2b86a8e1 [1.0] Docs for middleware (#817) 2018-09-11 11:59:31 +01:00
Olle Jonsson
8309a875bb [1.0] Docs for more middlewares (#815) 2018-09-07 16:01:55 +01:00
K. Rodman Mannix
f26a8d675b Add DEFAULT_EXCEPTIONS constant to Request::Retry (#814) 2018-08-23 16:02:29 +01:00
Mattia Giuffrida
82a8a0bd13 Merge branch 'master' of https://github.com/lostisland/faraday into 1.0
# Conflicts:
#	lib/faraday/request.rb
2018-07-21 15:11:12 +01:00
Michiel
f08a985bd1 Make Faraday::Request serialisable with Marshal. (#803) 2018-05-28 22:42:12 +01:00
Mattia
8ba0797af9
Version bump to 0.15.2 2018-05-23 16:15:54 +01:00
Denis Talakevich
aafbb24771 #800 correct handling parameter value empty array (#801) 2018-05-23 16:15:06 +01:00
Michiel
fe379511f0 Set max_retries to 0 if available. (#799) 2018-05-23 12:20:12 +01:00
Mattia
e8589f9db6
version bump to 0.15.1 2018-05-10 16:35:29 +01:00
iMacTia
5ee253a9a3 Merge branch 'master' of https://github.com/lostisland/faraday into 1.0
# Conflicts:
#	lib/faraday/adapter/patron.rb
2018-05-10 10:09:43 +01:00
Julik Tarkhanov
ac661139fe Fix: do not memoize/reuse Patron session (#796) 2018-05-10 10:07:37 +01:00
Pete Nicholls
5f1687abbe Logger middleware: use $stdout instead of STDOUT (#794) 2018-05-10 09:51:06 +01:00
Olle Jonsson
632ea6c96d Refactor: inline cached_connection (#797) 2018-05-08 14:27:00 +01:00
Bart
1fa90511f1 Allow setting min/max ssl version for Excon (#795) 2018-05-04 12:21:01 +01:00
Adrien Tateno
49112d2d69 NetHttpPersistent adapter better reuse of SSL connections (#793) 2018-05-04 12:19:08 +01:00
Bart
e7c79907f3 Allow setting min/max SSL version for a Net::HTTP connection on Ruby 2.5 (#792) 2018-05-01 07:49:54 +01:00
Mattia
4381c2d62d
Version bump to 0.15.0 2018-04-19 14:06:45 +01:00
Olle Jonsson
89b3365896 YARD annotations; Git ignore .yardoc/ (#788) 2018-04-17 15:08:09 +01:00
Erich Soares Machado
6b564ee8e8 Improve response logger middleware output (#784) 2018-03-26 11:15:39 +01:00
Fabio Kreusch
0aebd35d9f Returns the http response when giving up on retrying by status (#783) 2018-03-24 09:37:11 +00:00
Hiro Asari
0989bf1f76 Fix Retry middleware documentation (#781)
Based on the value defined in the code.
2018-03-15 20:58:30 +00:00
Mattia Giuffrida
d9661c4567 Merge branch 'master' of https://github.com/lostisland/faraday into 1.0 2018-03-08 20:09:09 +00:00
Michael Grosser
77fc3ecee9 Reuse persistent connections when using net-http-persistent (#778) 2018-03-08 18:05:41 +00:00
Anton Ilin
6ddf9c3b80 Retry middleware improvements (honour Retry-After header, retry statuses) (#773) 2018-02-22 21:08:09 +00:00
Gergely Borsothy-Gaal
c6a2098e08 Added retry block option to retry middleware. (#770) 2018-02-15 15:00:17 +00:00
Mattia Giuffrida
5f9314fba6 Merge branch 'master' of https://github.com/lostisland/faraday into 1.0 2018-02-10 13:14:17 +00:00
Olle Jonsson
452f04d342 [api docs] NestedParamsEncoder (#768) 2018-02-07 14:05:06 +00:00
Luis Edymerchk Laverde
162932650f Remove unused class error (#767) 2018-02-04 11:13:50 +00:00
Olle Jonsson
1793f9fd47 [1.0 docs] YARD docblocks for classes Env, Request (#763) 2018-02-02 16:54:07 +00:00
Olle Jonsson
33f771d0c4 [1.0] Remove deprecated arg to proxy reader (#765) 2018-01-31 15:48:54 +00:00
Olle Jonsson
5cdb17cf10 [1.0] YARD docblocks annotation - a beginning in a single file (#758) 2018-01-21 11:41:10 +00:00
Mattia Giuffrida
f2e0e22442 Merge branch 'master' of https://github.com/lostisland/faraday into 1.0
# Conflicts:
#	.travis.yml
2018-01-21 09:44:34 +00:00
iMacTia
2f91e9da6e Version bump to 0.14.0 2018-01-19 17:41:05 +00:00
Mattia
e6311bd286
Allow overriding env proxy (#754)
* Allows to ignore env proxy by setting Faraday.ignore_env_proxy to true
* Improved readme adding a new Proxy section
2018-01-19 17:28:00 +00:00
Christian
397166eda0 Handle all connection timeout messages in Patron (#687)
* Include more of cURL's connection timeout messages
2017-12-13 18:56:13 +00:00