Cohttp_server_lwt_unix.Bodymodule Encoding : sig ... endval string : ?encoding:Encoding.t -> string -> tstring ?encoding s respond with body s.
?encoding the encoding to use. by default this is Encoding.fixed
module Substring : sig ... endval stream : ?encoding:Encoding.t -> (unit -> Substring.t option Lwt.t) -> tstream ?encoding f respond with body generated by repeatedly applying f. When f returns None, it will be considered terminated.
?encoding is the encoding to use. By default this is Encoding.chunked.