URLSessionProtocol
public protocol URLSessionProtocol
Protocol that allows custom implementation of the HTTP layer.
-
Result for the
execute
function.Declaration
Swift
typealias DataTaskResult = (Data?, URLResponse?, Error?) -> Void
-
Function that will trigger the HTTP request.
Declaration
Swift
func execute( with request: URLRequest, completionHandler: @escaping DataTaskResult) -> URLSessionDataTaskProtocol