package cohttp-lwt

  1. Overview
  2. Docs

Module Cohttp_lwt.BodySource

Sourcetype t = [
  1. | Cohttp.Body.t
  2. | `Stream of string Lwt_stream.t
]
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval __t_of_sexp__ : Sexplib0.Sexp.t -> t
include Cohttp.S.Body with type t := t
Sourceval empty : t
Sourceval of_string : string -> t
Sourceval of_string_list : string list -> t
Sourceval of_form : ?scheme:string -> (string * string list) list -> t
Sourceval map : (string -> string) -> t -> t
Sourceval transfer_encoding : t -> Cohttp.Transfer.encoding
Sourceval is_empty : t -> bool Lwt.t
Sourceval to_string : t -> string Lwt.t
Sourceval to_string_list : t -> string list Lwt.t
Sourceval to_stream : t -> string Lwt_stream.t
Sourceval of_stream : string Lwt_stream.t -> t
Sourceval to_form : t -> (string * string list) list Lwt.t
Sourceval create_stream : ('a -> Cohttp.Transfer.chunk Lwt.t) -> 'a -> string Lwt_stream.t
Sourceval length : t -> (int64 * t) Lwt.t
Sourceval write_body : (string -> unit Lwt.t) -> t -> unit Lwt.t
Sourceval drain_body : t -> unit Lwt.t
OCaml

Innovation. Community. Security.