package yurt

  1. Overview
  2. Docs
exception Invalid_multipart_form
val urlencoded : Cohttp_lwt_body.t -> (string, string list) Hashtbl.t Lwt.t
val urlencoded_list : Cohttp_lwt_body.t -> (string * string list) list Lwt.t
val urlencoded_json : Cohttp_lwt_body.t -> Ezjsonm.t Lwt.t
type multipart = {
  1. mutable data : char Lwt_stream.t;
  2. mutable name : string;
  3. attr : (string, string list) Hashtbl.t;
}
val get_attr : multipart -> string -> string list
val is_multipart : Request_ctx.Request.t -> bool
val multipart : Request_ctx.Request.t -> Cohttp_lwt_body.t -> multipart list Lwt.t
type form =
  1. | Multipart of multipart list
  2. | Urlencoded of (string, string list) Hashtbl.t
val parse_form : Request_ctx.Request.t -> Cohttp_lwt_body.t -> form Lwt.t
OCaml

Innovation. Community. Security.