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
Jeremy ISRAEL
7dded89b33
Create PartParams class to allow multipart posts with JSON content and IO content in the same request
2019-09-17 10:29:22 +02:00
Aaron Patterson
f4ae96ea9b
This fixes warnings on Ruby 2.7 ( #1009 )
2019-08-15 22:17:16 +01:00
Igor Springer
25979431e4
Add support for setting Ruby Net::HTTP read_timeout
option separately
...
Right now `timeout` setting sets all the timeout values (`read`, `open` & `write` if available). To unify the API with `Net::HTTP` one (which has a dedicated method for `read_timeout` as well) I propose extending the `RequestOptions` by `read_timeout`.
2019-07-18 11:03:58 +02:00
rick olson
70764fb34e
teach #inspect how to build string without appending to a frozen string
2019-07-08 11:43:19 -06:00
rick olson
275d1e3daa
bump version to 1.0.0-rc1
2019-06-25 10:57:44 -06:00
risk danger olson
1c3bf50d8a
rdoc: fix type info for SSLOptions ( #990 )
2019-06-03 13:47:52 -04:00
iMacTia
d4f062a56b
Use latest rubocop version like CircleCI.
2019-05-23 11:02:59 +01:00
lucasmoreno
91ba32e9d2
Introduces Faraday::ConflictError for 409 response code ( #979 )
2019-05-23 10:35:21 +01:00