mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-07 00:11:11 -04:00
Merge pull request #957 from lostisland/docs-retry-arg
document missing `:retry_statuses` argument
This commit is contained in:
commit
ef8d9eb2bc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user