package piaf

  1. Overview
  2. Docs
On This Page
  1. HTTP fields.
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Multipart_form.FieldSource

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:

Sourcetype '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
Sourcetype witness =
  1. | Witness : 'a t -> witness
Sourcetype field =
  1. | Field : Field_name.t * 'a t * 'a -> field
OCaml

Innovation. Community. Security.