From 04aeedf0b8eb61ad006b7e48ca28b68626997d61 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Mon, 1 Jan 2024 11:58:19 +1300 Subject: [PATCH 1/2] docs: update `body` param type for `run_request` --- lib/faraday/connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/faraday/connection.rb b/lib/faraday/connection.rb index 0196945e..e284daec 100644 --- a/lib/faraday/connection.rb +++ b/lib/faraday/connection.rb @@ -423,7 +423,7 @@ def build_url(url = nil, extra_params = nil) # # @param method [Symbol] HTTP method. # @param url [String, URI, nil] String or URI to access. - # @param body [String, nil] The request body that will eventually be converted to + # @param body [Object, nil] The request body that will eventually be converted to # a string. # @param headers [Hash, nil] unencoded HTTP header key/value pairs. # From b9c30037dad76c48895b8307eaa079a70a10046a Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 20 Jan 2024 08:47:03 +0000 Subject: [PATCH 2/2] Update lib/faraday/connection.rb Co-authored-by: Gareth Jones --- lib/faraday/connection.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/faraday/connection.rb b/lib/faraday/connection.rb index e284daec..6316fc93 100644 --- a/lib/faraday/connection.rb +++ b/lib/faraday/connection.rb @@ -423,8 +423,8 @@ def build_url(url = nil, extra_params = nil) # # @param method [Symbol] HTTP method. # @param url [String, URI, nil] String or URI to access. - # @param body [Object, nil] The request body that will eventually be converted to - # a string. + # @param body [String, Hash, Array, nil] The request body that will eventually be converted to + # a string; middlewares can be used to support more complex types. # @param headers [Hash, nil] unencoded HTTP header key/value pairs. # # @return [Faraday::Response]