Up

module Octet_stream

: sig
#
module Encoding : sig
#
type known = [
| `Base64 of [
| `Text
| `Binary
]
| `Bit7
| `Bit8
| `Binary
| `Quoted_printable of [
| `Text
| `Binary
]
]

Text or binary are the type of the plaintext. For Base64, if the mode is text, '\n' is turned into '\r\n' when encoding, and vice versa.

#
type t = [
| `Unknown of string
]
#
val default : known
#
val of_headers_or_default : Headers.t -> t
#
val compare_known : known -> known -> int
#
val bin_known : known Core.Std.Bin_prot.Type_class.t
#
val bin_read_known : known Core.Std.Bin_prot.Read.reader
#
val __bin_read_known__ : (int -> known) Core.Std.Bin_prot.Read.reader
#
val bin_reader_known : known Core.Std.Bin_prot.Type_class.reader
#
val bin_size_known : known Core.Std.Bin_prot.Size.sizer
#
val bin_write_known : known Core.Std.Bin_prot.Write.writer
#
val bin_writer_known : known Core.Std.Bin_prot.Type_class.writer
#
val known_of_sexp : Sexplib.Sexp.t -> known
#
val __known_of_sexp__ : Sexplib.Sexp.t -> known
#
val sexp_of_known : known -> Sexplib.Sexp.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 __t_of_sexp__ : Sexplib.Sexp.t -> t
#
val sexp_of_t : t -> Sexplib.Sexp.t
end
#
type t
include String_monoidable.S with type t := t
include Core.Std.Stringable.S with type t := t
#
val hash : t -> int
#
val empty : t
#
val create : ?encoding:Encoding.t -> Bigstring_shared.t -> t
#
val encoding : t -> Encoding.t
#
val encoded_contents : t -> Bigstring_shared.t
#
val encode : Bigstring_shared.t -> Encoding.known -> t
#
val decode : t -> Bigstring_shared.t option
#
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