package dream-httpaf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Writer = Serialize.Writer
type error = [
  1. | `Malformed_response of string
  2. | `Invalid_response_body_length of Response.t
  3. | `Exn of exn
]
module Request_state : sig ... end
type t = {
  1. request : Request.t;
  2. request_body : Body.Writer.t;
  3. response_handler : Response.t -> Body.Reader.t -> unit;
  4. error_handler : error -> unit;
  5. mutable error_code : [ `Ok | error ];
  6. writer : Writer.t;
  7. mutable state : Request_state.t;
  8. mutable persistent : bool;
}
val create : (error -> unit) -> Request.t -> Body.Writer.t -> Writer.t -> (Response.t -> Body.Reader.t -> unit) -> t
val request : t -> Request.t
val write_request : t -> unit
val report_error : t -> error -> unit
val persistent_connection : t -> bool
val close_request_body : t -> unit
val close_response_body : t -> unit
val input_state : t -> Input_state.t
val output_state : t -> Output_state.t
val flush_request_body : t -> unit
val flush_response_body : t -> unit
OCaml

Innovation. Community. Security.