HPNetwork Documentation Beta

Class Network

public class Network 

Initializers

init(queue:​)

public init(queue: DispatchQueue) 

Properties

shared

public static let shared 

maximum​Concurrent​Requests

public var maximumConcurrentRequests: Int 

Methods

schedule(request:​progress​Handler:​completion:​)

@discardableResult
	public func schedule<T: NetworkRequest>(request: T, progressHandler: ProgressHandler? = nil, completion: @escaping T.Completion) -> NetworkTask