package piaf

  1. Overview
  2. Docs
type discrete = [
  1. | `Text
  2. | `Image
  3. | `Audio
  4. | `Video
  5. | `Application
]
type composite = [
  1. | `Multipart
]
type extension = [
  1. | `Ietf_token of string
  2. | `X_token of string
]
type t = [
  1. | discrete
  2. | composite
  3. | extension
]
val text : [> `Text ]
val image : [> `Image ]
val audio : [> `Audio ]
val video : [> `Video ]
val application : [> `Application ]
val multipart : [> `Multipart ]
val is_discrete : [> discrete ] -> bool
val is_multipart : [> `Multipart ] -> bool
val ietf : 'a -> ([> `Ietf_token of 'a ], 'b) result
val extension : string -> ([> `X_token of string ], [> `Msg of string ]) result
val pp : Format.formatter -> [< `Application | `Audio | `Ietf_token of string | `Image | `Multipart | `Text | `Video | `X_token of string ] -> unit
val to_string : [< `Application | `Audio | `Ietf_token of string | `Image | `Multipart | `Text | `Video | `X_token of string ] -> string
val compare : [< `Application | `Audio | `Ietf_token of string | `Image | `Multipart | `Text | `Video | `X_token of string ] -> [< `Application | `Audio | `Ietf_token of string | `Image | `Multipart | `Text | `Video | `X_token of string ] -> int
val equal : [< `Application | `Audio | `Ietf_token of string | `Image | `Multipart | `Text | `Video | `X_token of string ] -> [< `Application | `Audio | `Ietf_token of string | `Image | `Multipart | `Text | `Video | `X_token of string ] -> bool
val default : [> `Text ]
OCaml

Innovation. Community. Security.