HttpMimeType

public enum HttpMimeType : String

This enum provides commonly used MIME types that are e.g. provided in HTTP requests’ ‘Content-Type’ header field.

Application

  • Mime type for JSON content.

    Declaration

    Swift

    case json = "application/json"

Image

  • png

    Mime type for PNG images.

    Declaration

    Swift

    case png = "image/png"
  • Mime type for JPEG images.

    Declaration

    Swift

    case jpeg = "image/jpeg"