package mrmime

  1. Overview
  2. Docs
type discrete = [
  1. | `Text
  2. | `Image
  3. | `Audio
  4. | `Video
  5. | `Application
]
type composite = [
  1. | `Message
  2. | `Multipart
]
type extension = [
  1. | `Ietf_token of string
  2. | `X_token of string
]
type t = [
  1. | `Text
  2. | `Image
  3. | `Audio
  4. | `Video
  5. | `Application
  6. | `Message
  7. | `Multipart
  8. | `Ietf_token of string
  9. | `X_token of string
]

Type of ... type.

val text : t

Text type.

val image : t

Image type.

val audio : t

Audio type.

val video : t

Video type.

val application : t

Application type.

val message : t

Message type.

val multipart : t

Multipart type.

val ietf : string -> (t, [> `Msg of string ]) result

Type defined by IETF.

val extension : string -> (t, [> `Msg of string ]) result

User-defined type.

val pp : Format.formatter -> t -> unit

Pretty-printer of t.

val compare : t -> t -> int

Comparison of t.

val equal : t -> t -> bool

Equal of t.

val default : t

Default value of type according to RFC 2045.

val is_discrete : t -> bool
val is_multipart : t -> bool
val is_message : t -> bool
val to_string : t -> string
val of_string : string -> (t, [> `Msg of string ]) result
OCaml

Innovation. Community. Security.