SessionTask

public protocol SessionTask : ResponseHandler, Responsible

SessionTask type that represents a URL Load Request data task. By default this type conforms to ResponseHandler protocol, so that it could accept generic response handlers to be served on request completion.

  • Underlying URLRequest for this task instance

    Declaration

    Swift

    var requestProvider: URLRequestProvider? { get set }
  • Underlying URLSessionTask for this task instance

    Declaration

    Swift

    var task: URLSessionTask? { get set }