package cohttp

  1. Overview
  2. Docs
type pv = Accept_types.pv =
  1. | T of string
  2. | S of string
type p = string * pv
type media_range = Accept_types.media_range =
  1. | MediaType of string * string
  2. | AnyMediaSubtype of string
  3. | AnyMedia
type charset = Accept_types.charset =
  1. | Charset of string
  2. | AnyCharset
type encoding = Accept_types.encoding =
  1. | Encoding of string
  2. | Gzip
  3. | Compress
  4. | Deflate
  5. | Identity
  6. | AnyEncoding
type language = Accept_types.language =
  1. | Language of string list
  2. | AnyLanguage
type q = int
type !'a qlist = (q * 'a) list
val media_ranges : string option -> (media_range * Accept_types.p list) Accept_types.qlist
val charsets : string option -> charset Accept_types.qlist
val encodings : string option -> encoding Accept_types.qlist
val languages : string option -> language Accept_types.qlist
val string_of_media_range : (media_range * (string * pv) list) -> q -> string
val string_of_charset : charset -> q -> string
val string_of_encoding : encoding -> q -> string
val string_of_language : language -> q -> string
val string_of_media_ranges : (media_range * p list) qlist -> string
val string_of_charsets : charset qlist -> string
val string_of_encodings : encoding qlist -> string
val string_of_languages : language qlist -> string
OCaml

Innovation. Community. Security.