typed_headers/content_type

Types

pub type ContentType {
  Application(application.Application)
  ApplicationWithCodecs(
    application.Application,
    codecs: List(String),
  )
  Audio(audio.Audio)
  AudioWithCodecs(audio.Audio, codecs: List(String))
  Font(font.Font)
  Example(example.Example)
  Image(image.Image)
  Message(message.Message)
  Model(model.Model)
  Multipart(multipart.Multipart)
  Text(text.Text)
  Video(video.Video)
  VideoWithCodecs(video.Video, codecs: List(String))
  Custom(media_type: String, sub_type: String)
  Raw(String)
}

Constructors

  • Application(application.Application)
  • ApplicationWithCodecs(
      application.Application,
      codecs: List(String),
    )
  • Audio(audio.Audio)
  • AudioWithCodecs(audio.Audio, codecs: List(String))
  • Font(font.Font)
  • Example(example.Example)
  • Image(image.Image)
  • Message(message.Message)
  • Model(model.Model)
  • Multipart(multipart.Multipart)
  • Text(text.Text)
  • Video(video.Video)
  • VideoWithCodecs(video.Video, codecs: List(String))
  • Custom(media_type: String, sub_type: String)
  • Raw(String)

Constants

pub const header_name: String = "Content-Type"

Functions

pub fn to_string(content_type: ContentType) -> String
Search Document