Module Connection.Make

Parameters

module IO : Cohttp.S.IO

Signature

module IO = IO
type t
val create : ?read_buf:Stdlib.Buffer.t -> ?write_buf:Stdlib.Buffer.t -> mode:mode -> Cohttp.Request.t -> IO.ic -> IO.oc -> t
val send : t -> Frame.t -> unit IO.t
val send_multiple : t -> Frame.t list -> unit IO.t
val recv : t -> Frame.t IO.t
val req : t -> Cohttp.Request.t
val upgrade_connection : ?read_buf:Stdlib.Buffer.t -> ?write_buf:Stdlib.Buffer.t -> Cohttp.Request.t -> ( t -> unit IO.t ) -> [> `Expert of Cohttp.Response.t * ( IO.ic -> IO.oc -> unit IO.t ) ]