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

Adapter

mattt edited this page Sep 18, 2020 · 2 revisions

Adapter

Closure-based RequestAdapter.

open class Adapter:​ RequestInterceptor

Inheritance

RequestInterceptor

Initializers

init(_:​)

Creates an instance using the provided closure.

public init(_ adaptHandler:@escaping AdaptHandler)

Parameters

  • adaptHandler:​ AdaptHandler closure to be executed when handling request adaptation.

Methods

adapt(_:​for:​completion:​)

open func adapt(_ urlRequest:​ URLRequest, for session:​ Session, completion:@escaping (Result<URLRequest, Error>) -> Void)
Types
Protocols
Global Typealiases
Clone this wiki locally