HPNetwork Documentation Beta

Class Image​Download​Request

public class ImageDownloadRequest: NetworkRequest
ImageDownloadRequest ImageDownloadRequest NetworkRequest NetworkRequest ImageDownloadRequest->NetworkRequest

Conforms To

NetworkRequest

A protocol to wrap request objects. This gives us a better API over URLRequest.

Nested Type Aliases

Output

public typealias Output = UIImage

Output

public typealias Output = NSImage

Initializers

init(url:​url​Session:​finishing​Queue:​request​Method:​authentication:​)

public init(url: URL?, urlSession: URLSession = .shared, finishingQueue: DispatchQueue = .main, requestMethod: NetworkRequestMethod = .get, authentication: NetworkRequestAuthentication? = nil)

Properties

url

let url: URL?

url​Session

let urlSession: URLSession

finishing​Queue

let finishingQueue: DispatchQueue

request​Method

let requestMethod: NetworkRequestMethod

authentication

let authentication: NetworkRequestAuthentication?