package dream-httpaf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. buffer : Bigstringaf.t;
  2. encoder : Faraday.t;
  3. mutable drained_bytes : int;
  4. mutable wakeup : Optional_thunk.t;
}
val create : int -> t
val faraday : t -> Faraday.t
val make_frame_info : ?padding:Bigstringaf.t -> ?flags:Flags.t -> ?max_frame_size:int -> Stream_identifier.t -> frame_info
val write_connection_preface : t -> Settings.setting list -> unit
val chunk_data_frames : ?off:int -> f:(off:int -> len:int -> frame_info -> 'a) -> frame_info -> int -> 'a
val write_data : t -> frame_info -> ?off:int -> ?len:int -> string -> unit
val schedule_data : t -> frame_info -> ?off:int -> ?len:int -> Bigstringaf.t -> unit
val chunk_header_block_fragments : t -> frame_info -> ?has_priority:bool -> write_frame: (Faraday.t -> frame_info -> ?len:int -> Bigstringaf.t Faraday.iovec list -> unit) -> Faraday.t -> unit
val encode_headers : Hpack.Encoder.t -> Faraday.t -> Dream_hpack__Hpack.header list -> unit
val write_request_like_frame : t -> Hpack.Encoder.t -> write_frame: (Faraday.t -> frame_info -> ?len:int -> Bigstringaf.t Faraday.iovec list -> unit) -> frame_info -> Request.t -> unit
val write_request_headers : t -> Hpack.Encoder.t -> priority:Priority.t -> frame_info -> Request.t -> unit
val write_push_promise : t -> Hpack.Encoder.t -> frame_info -> promised_id:int32 -> Request.t -> unit
val write_response_headers : t -> Hpack.Encoder.t -> frame_info -> Response.t -> unit
val write_response_trailers : t -> Hpack.Encoder.t -> frame_info -> Dream_hpack__Hpack.header list -> unit
val write_rst_stream : t -> frame_info -> Error_code.t -> unit
val write_window_update : t -> frame_info -> int32 -> unit
val schedule_iovecs : t -> len:int -> frame_info -> Faraday.bigstring IOVec.t list -> unit
val write_priority : t -> frame_info -> Priority.t -> unit
val write_settings : t -> frame_info -> Settings.setting list -> unit
val write_ping : t -> frame_info -> ?off:int -> Faraday.bigstring -> unit
val write_go_away : t -> frame_info -> debug_data:Bigstringaf.t -> last_stream_id:int32 -> Error_code.t -> unit
val on_wakeup_writer : t -> (unit -> unit) -> unit
val wakeup : t -> unit
val flush : t -> (unit -> unit) -> unit
val unyield : t -> unit
val yield : t -> unit
val close : t -> unit
val close_and_drain : t -> unit
val is_closed : t -> bool
val drained_bytes : t -> int
val report_result : t -> [< `Closed | `Ok of int ] -> unit
val next : t -> [> `Close of int | `Write of Faraday.bigstring Faraday.iovec list | `Yield ]
OCaml

Innovation. Community. Security.