sig
type mechanism =
[ `Base64
| `Binary
| `Bit7
| `Bit8
| `Ietf_token of string
| `QuotedPrintable
| `X_token of string ]
type field = [ `ContentEncoding of MrMime_contentEncoding.mechanism ]
val pp : Format.formatter -> MrMime_contentEncoding.mechanism -> unit
val default : MrMime_contentEncoding.mechanism
module Encoder :
sig
val w_encoding :
(MrMime_contentEncoding.mechanism,
([> `Partial of Bytes.t * int * int * (int -> 'a) ] as 'a)
Encoder.partial)
Encoder.k1
val w_field :
(MrMime_contentEncoding.field,
([> `Partial of Bytes.t * int * int * (int -> 'a) ] as 'a)
Encoder.partial)
Encoder.k1
end
module Decoder :
sig val p_encoding : MrMime_contentEncoding.mechanism MrMime_parser.t end
val of_string :
?chunk:int -> string -> MrMime_contentEncoding.mechanism option
val of_string_raw :
?chunk:int ->
string -> int -> int -> (MrMime_contentEncoding.mechanism * int) option
end