package dream-httpaf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type parse_error = [
  1. | `Parse of string list * string
  2. | `Error of Error.t
  3. | `Error_code of Error_code.t
]
type 'error parse_state =
  1. | Initial
  2. | Fail of 'error
  3. | Partial of Bigstringaf.t -> off:int -> len:int -> AU.more -> (unit, 'error) Stdlib.result AU.state
type 'error t = {
  1. parser : (unit, 'error) Stdlib.result Angstrom.t;
  2. mutable parse_state : 'error parse_state;
  3. mutable closed : bool;
  4. parse_context : parse_context;
}
type frame = parse_error t
val create : (unit, 'a) Stdlib.result Angstrom.t -> parse_context -> 'a t
val create_parse_context : int -> parse_context
val settings_preface : parse_context -> (Frame.t * Settings.settings_list, [> `Error of Error.t ]) Stdlib.result Angstrom.t
val connection_preface_and_frames : max_frame_size:int -> (parse_context -> ('a * 'b, 'c) Stdlib.result Angstrom.t) -> ('d -> 'e -> 'f) -> ((Frame.t, Error.t) Stdlib.result -> 'g) -> 'h t
val client_frames : (Frame.t -> Settings.settings_list -> 'a) -> ((Frame.t, Error.t) Stdlib.result -> 'b) -> max_frame_size:int -> [> `Error of Error.t ] t
val server_frames : max_frame_size:int -> (Frame.t -> Settings.settings_list -> 'a) -> ((Frame.t, Error.t) Stdlib.result -> 'b) -> [> `Error of Error.t ] t
val is_closed : 'a t -> bool
val transition : [> `Error_code of Error_code.t | `Parse of string list * string ] as 'a t -> (unit, 'b) Stdlib.result AU.state -> int
val start : [> `Parse of string list * string ] as 'a t -> (unit, 'b) Stdlib.result AU.state -> unit
val read_with_more : [> `Error_code of Error_code.t | `Parse of string list * string ] t -> Bigstringaf.t -> off:int -> len:int -> AU.more -> int
val force_close : 'a t -> unit
val fail_to_string : string list -> string -> string
val next_from_error : 'a t -> ?msg:string -> Error_code.t -> [> `Close | `Error of Error.t | `Read ]
val next : [< `Error of Error.t | `Error_code of Error_code.t | `Parse of string list * string ] t -> [> `Close | `Error of Error.t | `Read ]
OCaml

Innovation. Community. Security.