Merge pull request #957 from lostisland/docs-retry-arg

document missing `:retry_statuses` argument
This commit is contained in:
risk danger olson 2019-03-30 08:52:31 -06:00 committed by GitHub
commit ef8d9eb2bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,10 @@ module Faraday
# @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)