package piaf

  1. Overview
  2. Docs

HTTP fields.

An HTTP header (see Header.t) is composed of several fields. A field is a Field_name.t with a (typed or not) value. This library provides 4 kinds of values:

type 'a t =
  1. | Content_type : Content_type.t t
  2. | Content_encoding : Content_encoding.t t
  3. | Content_disposition : Content_disposition.t t
  4. | Field : Unstrctrd.t t
type witness =
  1. | Witness : 'a t -> witness
type field =
  1. | Field : Field_name.t * 'a t * 'a -> field