package yurt

  1. Overview
  2. Docs

Module Yurt.FormSource

Sourceexception Invalid_multipart_form
Sourceval urlencoded : Body.t -> (string, string list) Hashtbl.t Lwt.t
Sourceval urlencoded_list : Body.t -> (string * string list) list Lwt.t
Sourceval urlencoded_json : Body.t -> Ezjsonm.t Lwt.t
Sourcetype multipart = {
  1. mutable data : char Lwt_stream.t;
  2. mutable name : string;
  3. attr : (string, string list) Hashtbl.t;
}
Sourceval get_attr : multipart -> string -> string list
Sourceval is_multipart : Request.t -> bool
Sourceval multipart : Request.t -> Body.t -> multipart list Lwt.t
Sourcetype form =
  1. | Multipart of multipart list
  2. | Urlencoded of (string, string list) Hashtbl.t
Sourceval parse_form : Request.t -> Body.t -> form Lwt.t