package dream-httpaf

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Dream_httpaf_.RespdSource

Sourcemodule Writer = Serialize.Writer
Sourcetype error = [
  1. | `Malformed_response of string
  2. | `Invalid_response_body_length of Response.t
  3. | `Exn of exn
]
Sourcemodule Request_state : sig ... end
Sourcetype 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;
}
Sourceval create : (error -> unit) -> Request.t -> Body.Writer.t -> Writer.t -> (Response.t -> Body.Reader.t -> unit) -> t
Sourceval request : t -> Request.t
Sourceval write_request : t -> unit
Sourceval report_error : t -> error -> unit
Sourceval persistent_connection : t -> bool
Sourceval close_request_body : t -> unit
Sourceval close_response_body : t -> unit
Sourceval input_state : t -> Input_state.t
Sourceval output_state : t -> Output_state.t
Sourceval flush_request_body : t -> unit
Sourceval flush_response_body : t -> unit
OCaml

Innovation. Community. Security.