RequestAdapter
public protocol RequestAdapter
A type that can inspect and optionally adapt a URLRequest in some manner if necessary.
-
Inspects and adapts the specified
URLRequestin some manner if necessary and returns the result.Throws
An
Errorif the adaptation encounters an error.Declaration
Swift
func adapt(_ urlRequest: URLRequest) throws -> URLRequest
View on GitHub
RequestAdapter Protocol Reference