RequestAdapter
public protocol RequestAdapter
Adapts a request to another request. Adapters modify an input URLRequest
object.
-
Adapts an input
URLRequest
object and returns a modified object.Throws
An error during the adapting process.Declaration
Swift
func adapted(_ request: URLRequest) throws -> URLRequest
Parameters
request
The request to be adapted.
Return Value
The modified
URLRequest
object.