package mrmime

  1. Overview
  2. Docs

Module Content_type.TypeSource

Sourcetype discrete = [
  1. | `Text
  2. | `Image
  3. | `Audio
  4. | `Video
  5. | `Application
]
Sourcetype composite = [
  1. | `Message
  2. | `Multipart
]
Sourcetype extension = [
  1. | `Ietf_token of string
  2. | `X_token of string
]
Sourcetype 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.

Sourceval text : t

Text type.

Sourceval image : t

Image type.

Sourceval audio : t

Audio type.

Sourceval video : t

Video type.

Sourceval application : t

Application type.

Sourceval message : t

Message type.

Sourceval multipart : t

Multipart type.

Sourceval ietf : string -> (t, [> Rresult.R.msg ]) result

Type defined by IETF.

Sourceval extension : string -> (t, [> Rresult.R.msg ]) result

User-defined type.

Sourceval pp : t Fmt.t

Pretty-printer of t.

Sourceval compare : t -> t -> int

Comparison of t.

Sourceval equal : t -> t -> bool

Equal of t.

Sourceval default : t

Default value of type according to RFC 2045.

Sourceval is_discrete : t -> bool
Sourceval is_multipart : t -> bool
Sourceval is_message : t -> bool
Sourceval to_string : t -> string
Sourceval of_string : string -> (t, [> Rresult.R.msg ]) result
OCaml

Innovation. Community. Security.