download(_:shouldDecodeSourceDataOfMIMEType:)
Sent when a download object determines that the downloaded file is encoded to inquire whether the file should be automatically decoded.
Declaration
optional func download(_ download: NSURLDownload, shouldDecodeSourceDataOfMIMEType encodingType: String) -> BoolParameters
- download:
The URL download object sending the message.
- encodingType:
The type of encoding used by the downloaded file. The supported encoding formats are MacBinary (
"application/macbinary"), Binhex ("application/mac-binhex40") and gzip ("application/gzip").
Return Value
Discussion
The delegate may receive this message more than once if the file has been encoded multiple times. This method is not called if the downloaded file is not encoded.