HPNetwork Documentation Beta

Class Network​Task

public class NetworkTask: NSObject
NetworkTask NetworkTask NSObject NSObject NetworkTask->NSObject

Conforms To

NSObject

Initializers

init(task:​cancelled:​)

public init(task: URLSessionTask? = nil, cancelled: Bool = false)

Properties

task

var task: URLSessionTask?

cancelled

var cancelled

queue

let queue

Methods

cancel()

public func cancel()

set(_:​)

func set(_ task: URLSessionTask)