Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
The Body
module contains methods needed for creating, reading and modifying request data
type t = Cohttp_lwt.Body.t
type transfer_encoding = Cohttp.Transfer.encoding
val to_string : t -> string Lwt.t
Convert body to string
val to_stream : t -> string Lwt_stream.t
Convert body to stream
val of_string : string -> t
Create body from string
val of_stream : string Lwt_stream.t -> t
Create body from stream
val is_empty : t -> bool Lwt.t
Returns true when body has no content
val drain : t -> unit Lwt.t
Ignore body content
val transfer_encoding : t -> transfer_encoding