UploadHandler

public struct UploadHandler

The handler used to combine progress and completion.

  • Typealias for the progress handler which returns the total bytes sent and the total bytes expected to be sent.

    Declaration

    Swift

    public typealias ProgressHandler = ((Int64, Int64) -> Void)?
  • Typealias for the completion handler which returns either a response or an error.

    Declaration

    Swift

    public typealias CompletionHandler = ((URLResponse?, Error?) -> Void)