Skip to content

Commit

Permalink
Merge pull request #957 from lostisland/docs-retry-arg
Browse files Browse the repository at this point in the history
document missing `:retry_statuses` argument
  • Loading branch information
technoweenie committed Mar 30, 2019
2 parents 5063ffe + d986824 commit ef8d9eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/faraday/request/retry.rb
Expand Up @@ -115,6 +115,10 @@ def retry_statuses
# @option options [Block] :retry_block block that is executed after
# every retry. Request environment, middleware options, current number
# of retries and the exception is passed to the block as parameters.
# @option options [Array] :retry_statuses Array of Integer HTTP status
# codes or a single Integer value that determines whether to raise
# a Faraday::RetriableResponse exception based on the HTTP status code
# of an HTTP response.
def initialize(app, options = nil)
super(app)
@options = Options.from(options)
Expand Down

0 comments on commit ef8d9eb

Please sign in to comment.