Up

module Boundary

: sig
#
type 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.

#
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 generate : ?text:Bigstring_shared.t -> ?suggest:t -> unit -> t

Creates valid boundaries for given text.

#
val generate_list : ?text:Bigstring_shared.t -> unit -> t Core_extended.Std.Lazy_sequence.t

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
#
val compare : t -> t -> int
#
val bin_t : t Core.Std.Bin_prot.Type_class.t
#
val bin_read_t : t Core.Std.Bin_prot.Read.reader
#
val __bin_read_t__ : (int -> t) Core.Std.Bin_prot.Read.reader
#
val bin_reader_t : t Core.Std.Bin_prot.Type_class.reader
#
val bin_size_t : t Core.Std.Bin_prot.Size.sizer
#
val bin_write_t : t Core.Std.Bin_prot.Write.writer
#
val bin_writer_t : t Core.Std.Bin_prot.Type_class.writer
#
val t_of_sexp : Sexplib.Sexp.t -> t
#
val sexp_of_t : t -> Sexplib.Sexp.t
end