package mrmime

  1. Overview
  2. Docs

Module Content_type.SubtypeSource

Sourcetype t = [
  1. | `Ietf_token of string
  2. | `Iana_token of string
  3. | `X_token of string
]

Type of sub-type.

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

Sub-type defined by IETF.

Sourceval iana : Type.t -> string -> (t, [> `Msg of string ]) result

Sub-type from IANA database. Returns Error if sub-type is not a part of the IANA database.

Sourceval iana_exn : Type.t -> string -> t
Sourceval v : Type.t -> string -> t
Sourceval extension : string -> (t, [> `Msg of string ]) result

User-defined sub-type.

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

Pretty-printer of t.

Sourceval compare : t -> t -> int

Comparison on t.

Sourceval equal : t -> t -> bool

Equal on t.

Sourceval default : t

Default value of sub-type acccording to RFC 2045.

Sourceval to_string : t -> string