package http-multipart-formdata

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

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

type 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.

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

pp fmt part is the pretty printer for t.

val equal : t -> t -> bool

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

OCaml

Innovation. Community. Security.