Handler
public class Handler<T>
A common interface for processing HTTP responses.
-
Creates a new instance with the specified callback closure.
Declaration
Swift
required public init(_ callback: @escaping Callback<T>) -
Handles the incoming data. Subclasses must override this method.
Declaration
Swift
public func handle(_: Data?, _: URLResponse?, _: Error?)