Up

module Email

: sig
#
type t
#
val empty : unit -> t
#
val of_bigbuffer : Core.Std.Bigbuffer.t -> t Core.Std.Or_error.t
#
val headers : t -> Headers.t
#
val set_headers : t -> Headers.t -> t
#
val content : t -> [
| `Message of t
| `Data of Octet_stream.t
| `Multipart of t list
]
#
val map_data : t -> f:(Octet_stream.t -> Octet_stream.t) -> t

Allow changing the message content to mask the actual data but retain the structure

#
val raw_content : t -> Bigstring_shared.t

The content of the body itself, without headers.

#
val to_bigstring_shared : t -> Bigstring_shared.t
include String_monoidable.S with type t := t
include Core.Std.Stringable.S with type t := t
include Bigstringable.S with type t := t
include Core.Std.Sexpable.S with type t := t
include Core.Std.Comparable.S with type t := t
include Core.Std.Binable.S with type t := t
#
val hash : t -> int
#
module Simple : sig
#
val create : headers:(string * string) list -> body:string -> t Core.Std.Or_error.t
#
val create_exn : headers:(string * string) list -> body:string -> t
end
end