VKRequester
public class VKRequester : NSObject, URLSessionDataDelegate, URLSessionDelegate
-
Declaration
Swift
public static let shared: VKRequester
-
Declaration
Swift
public func jsonRequest(url: URL, method: String, parameters: [String : Any], headers: [String : String] = [:], mapper: ((Any, [AnyHashable : Any]?) -> Any)?, completion: @escaping VKRequestCompletionBlock) -> VKCancellable
-
Declaration
Swift
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void)
-
Declaration
Swift
public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)
-
Declaration
Swift
public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?)