ImageResponseSerializer

open class ImageResponseSerializer : ResponseSerializer

Undocumented

Properties

  • 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 }

Initialization

Serialization

Content Type Validation

  • 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