ImageResponseSerializer

public final 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
  • Undocumented

    Declaration

    Swift

    public let emptyResponseCodes: Set<Int>
  • Undocumented

    Declaration

    Swift

    public let emptyRequestMethods: Set<HTTPMethod>
  • 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