Typealiases

The following typealiases are available globally.

  • A closure executed once a request has successfully completed in order to determine where to move the temporary file written to during the download process. The closure takes two arguments: the temporary file URL and the URL response, and returns a single argument: the file URL where the temporary file should be moved.

    Declaration

    Swift

    public typealias DownloadFileDestination = (NSURL, NSHTTPURLResponse) -> NSURL
  • A closure used to validate a request that takes a URL request and URL response, and returns whether the request was valid.

    Declaration

    Swift

    public typealias Validation = (NSURLRequest?, NSHTTPURLResponse) -> ValidationResult