From 41b7ea27e30d99ebfed958abfa11d12b01f6b6d1 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Wed, 9 Aug 2023 14:02:28 +0200 Subject: [PATCH] Document "methods" type as symbols [ci skip] (#30) This change to the API documentation fixes a logged issue. Hope this helps! --- lib/faraday/retry/middleware.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/faraday/retry/middleware.rb b/lib/faraday/retry/middleware.rb index 2c68216..066fe38 100644 --- a/lib/faraday/retry/middleware.rb +++ b/lib/faraday/retry/middleware.rb @@ -95,8 +95,8 @@ def retry_statuses # 'Timeout::Error', Faraday::TimeoutError, Faraday::RetriableResponse]) # The list of exceptions to handle. Exceptions can be given as # Class, Module, or String. - # @option options [Array] :methods (the idempotent HTTP methods - # in IDEMPOTENT_METHODS) A list of HTTP methods to retry without + # @option options [Array] :methods (the idempotent HTTP methods + # in IDEMPOTENT_METHODS) A list of HTTP methods, as symbols, to retry without # calling retry_if. Pass an empty Array to call retry_if # for all exceptions. # @option options [Block] :retry_if (false) block that will receive