package http-multipart-formdata

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Http_multipart_formdata.PartSource

Represents a parsed multipart part. A part corresponds to a submitted form field data in a HTTP request.

Sourcetype t = {
  1. body : bytes;
    (*

    Body content

    *)
  2. name : string;
    (*

    Name of the part - form field name

    *)
  3. content_type : string;
    (*

    HTTP content type of the part body. "text/plain" is default

    *)
  4. filename : string option;
    (*

    filename form field attribute.

    *)
  5. parameters : string Map.t;
    (*

    Additional key = value params of the form field.

    *)
}
Sourceval pp : Format.formatter -> t -> unit

pp fmt part is the pretty printer for t.

Sourceval equal : t -> t -> bool

equal part1 part2 returns true if part1 and part2 are equal.

OCaml

Innovation. Community. Security.