package cohttp-async

  1. Overview
  2. Docs
type reader
type writer
val read : IO.ic -> [ `Eof | `Invalid of string | `Ok of Http.Response.t ] IO.t
val make_body_writer : flush:bool -> Http.Response.t -> IO.oc -> writer
val make_body_reader : Http.Response.t -> IO.ic -> reader
val read_body_chunk : reader -> Cohttp.Transfer.chunk IO.t
val write_header : Http.Response.t -> IO.oc -> unit IO.t
val write_body : writer -> string -> unit IO.t
val write : flush:bool -> (writer -> unit IO.t) -> Http.Response.t -> IO.oc -> unit IO.t
OCaml

Innovation. Community. Security.