ImageResponseSerializer
open class ImageResponseSerializer : ResponseSerializer
Undocumented
-
Undocumented
Declaration
Swift
public static var deviceScreenScale: CGFloat { get }
-
Undocumented
Declaration
Swift
public let imageScale: CGFloat
-
Undocumented
Declaration
Swift
public let inflateResponseImage: Bool
-
Declaration
Swift
public let emptyResponseCodes: Set<Int>
-
Declaration
Swift
public let emptyRequestMethods: Set<HTTPMethod>
-
Undocumented
Declaration
Swift
public internal(set) static var acceptableImageContentTypes: Set<String> { get }
-
Undocumented
Declaration
Swift
public init(imageScale: CGFloat = ImageResponseSerializer.deviceScreenScale, inflateResponseImage: Bool = true, emptyResponseCodes: Set<Int> = ImageResponseSerializer.defaultEmptyResponseCodes, emptyRequestMethods: Set<HTTPMethod> = ImageResponseSerializer.defaultEmptyRequestMethods)
-
Adds the content types specified to the list of acceptable images content types for validation.
Declaration
Swift
public class func addAcceptableImageContentTypes(_ contentTypes: Set<String>)
Parameters
contentTypes
The additional content types.
-
Undocumented
Declaration
Swift
public func validateContentType(for request: URLRequest?, response: HTTPURLResponse?) throws