Index

RBNetworkClient.swift

Protocols

Classes


RBNetworkClient

Properties

public var printRequestURL Bool { get set }

public var printRequestBody Bool { get set }

public var printRequestHeaders Bool { get set }

public var printResponseURL Bool { get set }

public var printResponseBody Bool { get set }

public var printResponseHeaders Bool { get set }

A delegate to receive rest client events.
public weak var delegate RBNetworkClientDelegate? { get set }

public var session URLSession? { get }

public var configuration URLSessionConfiguration { get }

public var applyAdditionalHeaders [String : String]? { get set }

Functions

public func cancelAllRequests()

public func create(request: URLRequest) -> RBNetworkOperation?

public func resume(operation: RBNetworkOperation)

public func suspend(operation: RBNetworkOperation)

public func cancel(operation: RBNetworkOperation)

public func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?)

public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Swift.Void)

public func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession)

public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Swift.Void)

public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome downloadTask: URLSessionDownloadTask)

public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didBecome streamTask: URLSessionStreamTask)

public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data)

public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse, completionHandler: @escaping (CachedURLResponse?) -> Swift.Void)

public func urlSession(_ session: URLSession, task: URLSessionTask, willBeginDelayedRequest request: URLRequest, completionHandler: @escaping (URLSession.DelayedRequestDisposition, URLRequest?) -> Swift.Void)

public func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask)

public func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest, completionHandler: @escaping (URLRequest?) -> Swift.Void)

public func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Swift.Void)

public func urlSession(_ session: URLSession, task: URLSessionTask, needNewBodyStream completionHandler: @escaping (InputStream?) -> Swift.Void)

public func urlSession(_ session: URLSession, task: URLSessionTask, didSendBodyData bytesSent: Int64, totalBytesSent: Int64, totalBytesExpectedToSend: Int64)

public func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics)

public func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?)