Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Retrier

mattt edited this page Sep 18, 2020 · 2 revisions

Retrier

Closure-based RequestRetrier.

open class Retrier:​ RequestInterceptor

Inheritance

RequestInterceptor

Initializers

init(_:​)

Creates an instance using the provided closure.

public init(_ retryHandler:@escaping RetryHandler)

Parameters

  • retryHandler:​ RetryHandler closure to be executed when handling request retry.

Methods

retry(_:​for:​dueTo:​completion:​)

open func retry(_ request:​ Request, for session:​ Session, dueTo error:​ Error, completion:@escaping (RetryResult) -> Void)
Types
Protocols
Global Typealiases
Clone this wiki locally