package ocsigenserver

  1. Overview
  2. Docs
type extension = string
type file = string
type filename = string
type charset = string
val no_charset : charset
type charset_assoc
val empty_charset_assoc : ?default:charset -> unit -> charset_assoc
val find_charset : string -> charset_assoc -> charset
val default_charset : charset_assoc -> charset
val set_default_charset : charset_assoc -> charset -> charset_assoc
val update_charset_ext : charset_assoc -> extension -> charset -> charset_assoc
val update_charset_file : charset_assoc -> filename -> charset -> charset_assoc
val update_charset_regexp : charset_assoc -> Netstring_pcre.regexp -> charset -> charset_assoc
type mime_type = string
val default_mime_type : mime_type
type mime_assoc
val default_mime_assoc : unit -> mime_assoc
val parse_mime_types : filename:string -> mime_assoc
val find_mime : file -> mime_assoc -> string
val default_mime : mime_assoc -> mime_type
val set_default_mime : mime_assoc -> mime_type -> mime_assoc
val update_mime_ext : mime_assoc -> extension -> mime_type -> mime_assoc
val update_mime_file : mime_assoc -> filename -> mime_type -> mime_assoc
val update_mime_regexp : mime_assoc -> Netstring_pcre.regexp -> mime_type -> mime_assoc
OCaml

Innovation. Community. Security.