package mrmime

  1. Overview
  2. Docs

Module Mrmime.Content_typeSource

Content-type module.

Sourceval is_qtext : char -> bool
Sourceval is_token : char -> bool
Sourcemodule Type : sig ... end
Sourcemodule Subtype : sig ... end
Sourcemodule Parameters : sig ... end
Sourcetype t = {
  1. ty : Type.t;
  2. subty : Subtype.t;
  3. parameters : (string * Parameters.value) list;
}

Type of Content-Type value.

Sourceval default : t

Default Content-Type value according to RFC 2045.

Sourceval make : Type.t -> Subtype.t -> Parameters.t -> t

make ty subty params makes a new Content-Type value.

Sourceval ty : t -> Type.t

Return type of Content-Type value.

Sourceval subty : t -> Subtype.t

Return sub-type of Content-Type value.

Sourceval parameters : t -> (Parameters.key * Parameters.value) list

Returns parameters of Content-Type value.

Sourceval is_discrete : t -> bool
Sourceval is_multipart : t -> bool
Sourceval is_message : t -> bool
Sourceval with_type : t -> Type.t -> t
Sourceval with_subtype : t -> Subtype.t -> t
Sourceval with_parameter : t -> (Parameters.key * Parameters.value) -> t
Sourceval boundary : t -> string option

Pretty-printers.

Sourceval pp : t Fmt.t

Pretty-printer of t.

Equals.

Sourceval equal : t -> t -> bool

Equal of t.

Decoder of content-type.

Sourcemodule Decoder : sig ... end

Encoder of content-type.

Sourcemodule Encoder : sig ... end
OCaml

Innovation. Community. Security.