Module Email_message.Boundary

type t
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 sexp_of_t : t ‑> Sexplib.Sexp.t
val create : string ‑> t

Creates a boundary from the value of the "boundary" parameter in a Content-type header (RFC2046, p.19) Alias of to_string.

val split : t ‑> Bigstring_shared.t ‑> Bigstring_shared.t option * Bigstring_shared.t list * Bigstring_shared.t option

Splits an multipart body into a list of messages, and, if there are, an optional prologue and epilogue.

val join : t ‑> (Bigstring_shared.t option * String_monoid.t list * Bigstring_shared.t option) ‑> String_monoid.t
val generate : ?text:Bigstring_shared.t ‑> ?suggest:t ‑> unit ‑> t

Creates valid boundaries for given text.

Open an close boundaries

module Open : String_monoidable.S with type t := t

Used when the boundary indicates a new part

module Close : String_monoidable.S with type t := t

Used when the boundary indicates that there are no more parts

module Open_first : String_monoidable.S with type t := t

Used when the boundary indicates the beginning of the first part of the message, and there is no prologue.

include Core.Stringable.S with type t := t
type t
val of_string : string ‑> t
val to_string : t ‑> string