Up

Module Boundary

Signature

type t
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 sexp_of_t : t -> Sexplib.Sexp.t
val hash : t -> int
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.

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

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.Std.Stringable.S with type t := t
type t
val of_string : string -> t
val to_string : t -> string