package cohttp

  1. Overview
  2. Docs

Type definitions for the Accept module

type pv =
  1. | T of string
  2. | S of string
val pv_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> pv
val sexp_of_pv : pv -> Ppx_sexp_conv_lib.Sexp.t
type p = string * pv
val p_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> p
val sexp_of_p : p -> Ppx_sexp_conv_lib.Sexp.t
type media_range =
  1. | MediaType of string * string
  2. | AnyMediaSubtype of string
  3. | AnyMedia
val media_range_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> media_range
val sexp_of_media_range : media_range -> Ppx_sexp_conv_lib.Sexp.t
type charset =
  1. | Charset of string
  2. | AnyCharset
val charset_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> charset
val sexp_of_charset : charset -> Ppx_sexp_conv_lib.Sexp.t
type encoding =
  1. | Encoding of string
  2. | Gzip
  3. | Compress
  4. | Deflate
  5. | Identity
  6. | AnyEncoding
val encoding_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> encoding
val sexp_of_encoding : encoding -> Ppx_sexp_conv_lib.Sexp.t
type language =
  1. | Language of string list
  2. | AnyLanguage
val language_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> language
val sexp_of_language : language -> Ppx_sexp_conv_lib.Sexp.t
type q = int
val q_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> q
val sexp_of_q : q -> Ppx_sexp_conv_lib.Sexp.t
type 'a qlist = (q * 'a) list
val qlist_of_sexp : 'a. (Ppx_sexp_conv_lib.Sexp.t -> 'a) -> Ppx_sexp_conv_lib.Sexp.t -> 'a qlist
val sexp_of_qlist : 'a. ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a qlist -> Ppx_sexp_conv_lib.Sexp.t