summaryrefslogtreecommitdiff
path: root/gemini/mimeType.mli
blob: c8b295941017af76aa79b1a3946fe125a0bd15dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module type MIME_TYPE =
sig
  type t

  exception ParseError of string

  val from_string : string -> t

  val to_type : t -> string

  val to_subtype : t -> string

  val to_parameter : t -> (string * string) option

  val to_canonical : t -> string
end

module MimeType : MIME_TYPE