930 Commits

Author SHA1 Message Date
technoweenie
5efd43f749 init these ivars 2019-12-27 12:46:56 -07:00
technoweenie
24b99b8231 don't force response to be {} 2019-12-27 12:35:23 -07:00
technoweenie
e4aee9f7f2 improve error initializer consistency 2019-12-27 12:25:22 -07:00
Mattia
3301356e7d
Merge branch 'master' into fix-empty-body-for-flat-params-encoder 2019-12-27 17:02:59 +00:00
Amr El-Bakry
9726bc2029 Add log_level option to logger default formatter (#1079) 2019-12-27 17:02:08 +00:00
Samuel Williams
15595d0370 Add Adapter#close so that derived classes can call super. (#1091) 2019-12-27 16:48:45 +00:00
Kiselev Valentine
475ddeab13 Fix empty array for FlatParamsEncoder {key: []} -> "key=" 2019-12-09 14:05:01 +03:00
Samuel Williams
0b9552e707
Expose Connection#close. 2019-11-12 08:58:47 +09:00
Samuel Williams
e7ddc2d298
Issue warning if #close is not implemented. 2019-11-11 10:58:01 +09:00
Samuel Williams
f33e2fa1f8
Add default implementation of Middleware#close. 2019-11-02 08:31:02 +13:00
rick olson
b5f9936dbe remove temp_proxy and improve proxy tests 2019-10-18 11:10:41 -06:00
rick olson
b1b617e53f Correct documentation to show #connection returns the block return value.
This is so that it returns an HTTP response object from the client lib.
2019-10-17 10:24:03 -06:00
rick olson
43cd327f19 Merge branch 'master' into cleanup-adapter-connections
Update for latest #request_timeout changes.
2019-10-17 10:19:03 -06:00
rick olson
68c53c448f prefer Hash#fetch 2019-10-17 10:05:09 -06:00
Mattia
48e6c3f820
Merge branch 'master' into springerigor-read-timeout-request-option 2019-10-17 11:26:41 +01:00
Bobby McDonald
e331955fd8 Fix instances of frozen empty string literals (#1040) 2019-10-17 11:25:15 +01:00
Mattia
9de70e0184
Merge branch 'master' into springerigor-read-timeout-request-option 2019-10-17 11:02:23 +01:00
rick olson
232ec3892e the nil status is extremely rare, so check it last 2019-10-15 13:23:33 -06:00
risk danger olson
a91581a04e
Update lib/faraday/adapter/net_http.rb
Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
2019-10-15 10:35:10 -06:00
risk danger olson
296f336b62
Update lib/faraday/adapter/net_http.rb
Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
2019-10-15 10:35:03 -06:00
Jonny
07ddcb93f5 Pass the exception correctly 2019-10-15 10:26:10 -06:00
Michael Herold
72b917c8be Raise exception on nil status 2019-10-15 10:26:06 -06:00
rick olson
83d933a61e fix bad merge 2019-10-14 14:35:14 -06:00
rick olson
75b9804e33 unused 2019-10-14 14:21:19 -06:00
rick olson
18c204e3a5 lint fixes 2019-10-14 14:18:03 -06:00
risk danger olson
edcbd9f8e4
Merge branch 'master' into cleanup-adapter-connections 2019-10-14 14:13:02 -06:00
rick olson
b85589c72a Merge branch 'master' into springerigor-read-timeout-request-option 2019-10-14 14:08:02 -06:00
rick olson
0aea513d72 teach rack adapter to use #request_timeout 2019-10-14 14:07:42 -06:00
rick olson
6394bc08a5 teach patron adapter how to use #request_timeout 2019-10-14 14:06:07 -06:00
rick olson
711c257295 teach httpclient adapter how to use #request_timeout 2019-10-14 14:03:29 -06:00
Olle Jonsson
6c7bf772b9 Rubocop: Lint/SendWithMixinArgument (#1047)
Same as 0ac691abaf1f78185f025ea8c8711f3970b49ebc, credits to @BobbyMcWho
2019-10-07 17:54:17 +01:00
rick olson
9882080737 release v0.16.0 2019-09-27 10:26:47 -06:00
risk danger olson
872a249fa7
Excon streaming (#1026)
* implement excon streaming

* trust that excon will return empty body on streamed responses

* track total byte size ourselves

* the extra args are needed
2019-09-22 09:43:18 -06:00
rick olson
f8615d5255 net_http and net_http_persistent share _some_ config code 2019-09-20 07:30:21 -06:00
rick olson
ba7b82d9a2 lint: fix alignment and rescue stmt 2019-09-20 05:32:14 -06:00
rick olson
bfe360a0a7 Refactor patron adapter to use #connection 2019-09-20 04:25:02 -06:00
rick olson
bfdb66ab71 Refactor httpclient adapter to use #connection 2019-09-19 20:44:18 -06:00
rick olson
86d3cf2e8b Refactor excon adapter to use #connection 2019-09-19 20:38:20 -06:00
rick olson
36ff4a5c3e Refactor net_http and net_http_persistent adapters to use #connection 2019-09-19 20:26:26 -06:00
rick olson
b35f6a2480 RequestOptions#fetch_timeout => Adapter#request_timeout
This allows adapter internals and specs to treat request options as a 
plain hash.
2019-09-19 16:39:39 -06:00
rick olson
8dae875906 lint 2019-09-19 16:05:06 -06:00
rick olson
a5a398c231 teach Excon to use #fetch_timeout 2019-09-19 15:50:50 -06:00
rick olson
24cf49c216 teach EMHttp adapter to use #fetch_timeout 2019-09-19 15:40:36 -06:00
rick olson
dbe4fae178 teach Faraday::RequestOptions to get the correct timeout configuration 2019-09-19 12:20:45 -06:00
rick olson
3575ad6485 Merge branch 'read-timeout-request-option' of https://github.com/springerigor/faraday into springerigor-read-timeout-request-option 2019-09-19 12:00:09 -06:00
rick olson
c0c911d0ee properly indent @param tags 2019-09-18 14:50:54 -06:00
rick olson
c3bbb16dd3 remove class scope decl 2019-09-18 14:43:53 -06:00
rick olson
df8b15e720 move the Faraday::ParamPart#initialize yard desc to the class 2019-09-18 14:42:01 -06:00
rick olson
6fdc48e163 add specs for FilePart 2019-09-18 14:25:21 -06:00
rick olson
249835f8b6 add alias Faraday::FilePart for older Faraday::UploadIO 2019-09-18 14:18:14 -06:00