package dream-httpaf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'error parse_state =
  1. | Done
  2. | Fail of 'error
  3. | Partial of Bigstringaf.t -> off:int -> len:int -> AU.more -> unit AU.state
type 'error t = {
  1. parser : unit Angstrom.t;
  2. mutable parse_state : 'error parse_state;
  3. mutable closed : bool;
}
val create : (opcode:Websocket.Opcode.t -> is_fin:bool -> len:int -> Payload.t -> 'a) -> 'b t
val transition : [> `Parse of string list * string ] t -> unit AU.state -> int
val start : [> `Parse of string list * string ] t -> unit AU.state -> unit
val read_with_more : [> `Parse of string list * string ] t -> Bigstringaf.t -> off:int -> len:int -> AU.more -> int
val next : 'a t -> [> `Close | `Error of 'b | `Read ]
OCaml

Innovation. Community. Security.