package multipart_form

  1. Overview
  2. Docs
module Type : sig ... end
module Subtype : sig ... end
module Parameters : sig ... end
type t = {
  1. ty : Type.t;
  2. subty : Subtype.t;
  3. parameters : (string * Parameters.value) list;
}
val equal : t -> t -> bool
val pp : t Fmt.t
val of_string : string -> (t, [> `Msg of string ]) Stdlib.result

of_string str returns the Content-Type value from a string which come from your HTTP stack. NOTE: the string must finish with "\r\n". If you are not sure about the value returned by your HTTP stack, you should append it.

val to_string : t -> string