package mrmime

  1. Overview
  2. Docs

Content-Transfer-Encoding value

type t = [
  1. | `Bit7
  2. | `Bit8
  3. | `Binary
  4. | `Quoted_printable
  5. | `Base64
  6. | `Ietf_token of string
  7. | `X_token of string
]

Type for standard mechanism for encoding.

Basic encodings.

val bit8 : t
val bit7 : t
val binary : t
val quoted_printable : t
val base64 : t
val default : t

An encoding type of 7bit requires that the body is already in a 7bit mail-ready representation. This is the default value.

val of_string : string -> (t, [> Rresult.R.msg ]) result

of_string x is the standard mechanism x. If x is an invalid mechanism, of_string returns an error.

Equals.

val equal : t -> t -> bool

Equal function of t.

Pretty-printers.

val pp : t Fmt.t

Pretty-printer for t.

Decoder of Content-Encoding's value.

module Decoder : sig ... end

Encoder of Content-Encoding's value.

module Encoder : sig ... end
OCaml

Innovation. Community. Security.