Module Email_message.Octet_stream.Encoding

type known = [
| `Base64
| `Bit7
| `Bit8
| `Binary
| `Quoted_printable
]

Text or binary are the type of the plaintext. For Base64, if the mode is text, '\n' is turned into '\r\n' when encoding, and vice versa.

include sig ... end
val compare_known : known ‑> known ‑> int
val bin_read_known : known Bin_prot.Read.reader
val __bin_read_known__ : (int ‑> known) Bin_prot.Read.reader
val bin_reader_known : known Bin_prot.Type_class.reader
val bin_size_known : known Bin_prot.Size.sizer
val bin_write_known : known Bin_prot.Write.writer
val bin_writer_known : known Bin_prot.Type_class.writer
val bin_shape_known : Bin_prot.Shape.t
val known_of_sexp : Sexplib.Sexp.t ‑> known
val __known_of_sexp__ : Sexplib.Sexp.t ‑> known
val sexp_of_known : known ‑> Sexplib.Sexp.t
type t = [
| known
| `Unknown of string
]
include sig ... end
val compare : t ‑> t ‑> int
val bin_read_t : t Bin_prot.Read.reader
val __bin_read_t__ : (int ‑> t) Bin_prot.Read.reader
val bin_reader_t : t Bin_prot.Type_class.reader
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write.writer
val bin_writer_t : t Bin_prot.Type_class.writer
val bin_shape_t : Bin_prot.Shape.t
val t_of_sexp : Sexplib.Sexp.t ‑> t
val __t_of_sexp__ : Sexplib.Sexp.t ‑> t
val sexp_of_t : t ‑> Sexplib.Sexp.t
val default : known
val of_headers_or_default : Headers.t ‑> t
include Core.Stringable.S with type t := t
type t
val of_string : string ‑> t
val to_string : t ‑> string