Module Values.ContentSource

Represents textual data, plus an optional character set specification. By default, the text must be 7-bit ASCII, due to the constraints of the SMTP protocol. If the text must contain any other characters, then you must also specify a character set. Examples include UTF-8, ISO-8859-1, and Shift_JIS.

Sourcetype nonrec t = {
  1. data : MessageData.t;
    (*

    The textual data of the content.

    *)
  2. charset : Charset.t option;
    (*

    The character set of the content.

    *)
}
Sourceval context_ : string
Sourceval make : ?charset:??? -> data:MessageData.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of MessageData.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t