-
-
Save Juanpe/d953000cc55522c0f5f2312cd2a1d662 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol RequestAdapter { | |
/// Inspects and adapts the specified `URLRequest` in some manner if necessary and returns the result. | |
/// | |
/// - parameter urlRequest: The URL request to adapt. | |
/// | |
/// - throws: An `Error` if the adaptation encounters an error. | |
/// | |
/// - returns: The adapted `URLRequest`. | |
func adapt(_ urlRequest: URLRequest) throws -> URLRequest | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment