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