APIManagerProtocol
protocol APIManagerProtocol
-
sessionDefault implementationDefault Implementation
Declaration
Swift
var session: URLSession { get } -
performRequest(with:Default implementationhttpMethod: requestBody: headers: completionHandler: ) Default Implementation
Declaration
Swift
func performRequest<T: Decodable>( with url: URL, httpMethod: HTTPMethodType, requestBody: Data?, headers: [String: String]?, completionHandler: @escaping (Result<T, APIError>) -> Void )
APIManagerProtocol Protocol Reference