Up

Module Encoding

Signature

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.

val compare_known : known -> known -> int
val bin_read_known : known Core.Std.Bin_prot.Read.reader
val __bin_read_known__ : (int -> known) Core.Std.Bin_prot.Read.reader
val bin_size_known : known Core.Std.Bin_prot.Size.sizer
val bin_write_known : known Core.Std.Bin_prot.Write.writer
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
]
val compare : t -> t -> int
val __bin_read_t__ : (int -> t) Core.Std.Bin_prot.Read.reader
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.Std.Stringable.S with type t := t
type t
val of_string : string -> t
val to_string : t -> string