package dream-httpaf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Httpaf = Dream_httpaf_.Httpaf
module IOVec = Httpaf.IOVec
type t = {
  1. connection : Httpaf.Client_connection.t;
  2. body : Httpaf.Body.Writer.t;
}
val create : nonce:string -> headers:Dream_websocketaf.Handshake.Headers.t -> error_handler:Httpaf.Client_connection.error_handler -> response_handler:Httpaf.Client_connection.response_handler -> string -> t
val next_read_operation : t -> [ `Close | `Read | `Yield ]
val next_write_operation : t -> [ `Close of int | `Write of Bigstringaf.t Faraday.iovec list | `Yield ]
val read : t -> Bigstringaf.t -> off:int -> len:int -> int
val yield_reader : t -> (unit -> unit) -> unit
val report_write_result : t -> [ `Closed | `Ok of int ] -> unit
val yield_writer : t -> (unit -> unit) -> unit
val report_exn : t -> exn -> unit
val is_closed : t -> bool
val close : t -> unit
OCaml

Innovation. Community. Security.