APIManagerProtocol
protocol APIManagerProtocol
-
session
Default 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 )