Skip to content

OpenAPI_ContentType

mattpolzin edited this page Jun 11, 2021 · 3 revisions

OpenAPI.ContentType

public enum ContentType: Codable, Equatable, Hashable 

Inheritance

Codable, Equatable, Hashable, RawRepresentable

Initializers

init?(rawValue:)

public init?(rawValue: String) 

Enumeration Cases

bmp

Bitmap image

case bmp

css

case css

csv

case csv

form

URL-encoded form data. See also:​ multipartForm.

case form

html

case html

javascript

case javascript

jpg

JPEG image

case jpg

json

case json

jsonapi

JSON:​API Document

case jsonapi

mov

Quicktime video

case mov

mp3

MP3 audio

case mp3

mp4

MP4 video

case mp4

mpg

MPEG video

case mpg

multipartForm

Multipart form data. See also:​ form.

case multipartForm

pdf

case pdf

rar

RAR archive

case rar

rtf

case rtf

tar

Tape Archive (TAR)

case tar

tif

TIF image

case tif

txt

Plaintext

case txt

xml

case xml

yaml

case yaml

zip

ZIP archive

case zip

other

case other(String)

anyApplication

case anyApplication

anyAudio

case anyAudio

anyImage

case anyImage

anyText

case anyText

anyVideo

case anyVideo

any

case any

Properties

rawValue

public var rawValue: String 
Types
Protocols
Global Functions
Extensions
Clone this wiki locally