package yurt

  1. Overview
  2. Docs

Module Yurt_request_ctx.BodySource

include module type of struct include Cohttp_lwt.Body end
type t = [
  1. | `Empty
  2. | `Stream of string Lwt_stream.t
  3. | `String of string
  4. | `Strings of string list
]
val sexp_of_t : t -> Sexplib0.Sexp.t
val t_of_sexp : Sexplib0.Sexp.t -> t
val __t_of_sexp__ : Sexplib0.Sexp.t -> t
val empty : t
val of_string_list : string list -> t
val of_form : ?scheme:string -> (string * string list) list -> t
val to_string_list : t -> string list Lwt.t
val to_form : t -> (string * string list) list Lwt.t
val create_stream : ('a -> Cohttp.Transfer.chunk Lwt.t) -> 'a -> string Lwt_stream.t
val write_body : (string -> unit Lwt.t) -> t -> unit Lwt.t
val drain_body : t -> unit Lwt.t
Sourcetype transfer_encoding = Cohttp.Transfer.encoding
Sourceval to_string : Cohttp_lwt.Body.t -> string Lwt.t
Sourceval to_stream : Cohttp_lwt.Body.t -> string Lwt_stream.t
Sourceval to_json : Cohttp_lwt.Body.t -> [> Ezjsonm.t ] Lwt.t
Sourceval of_string : string -> Cohttp_lwt.Body.t
Sourceval of_stream : string Lwt_stream.t -> Cohttp_lwt.Body.t
Sourceval of_json : Ezjsonm.t -> Cohttp_lwt.Body.t
Sourceval map : (string -> string) -> Cohttp_lwt.Body.t -> Cohttp_lwt.Body.t
Sourceval length : Cohttp_lwt.Body.t -> (int64 * Cohttp_lwt.Body.t) Lwt.t
Sourceval is_empty : Cohttp_lwt.Body.t -> bool Lwt.t
Sourceval drain : Cohttp_lwt.Body.t -> unit Lwt.t
Sourceval transfer_encoding : Cohttp_lwt.Body.t -> Cohttp__.Transfer.encoding
OCaml

Innovation. Community. Security.