dream-httpaf.dream-websocketaf
Parse.Reader
dream-httpaf
dream-httpaf.dream-gluten
dream-httpaf.dream-gluten-lwt
dream-httpaf.dream-gluten-lwt-unix
dream-httpaf.dream-h2
dream-httpaf.dream-h2-lwt
dream-httpaf.dream-h2-lwt-unix
dream-httpaf.dream-hpack
dream-httpaf.dream-httpaf_
dream-httpaf.dream-httpaf_-lwt
dream-httpaf.dream-httpaf_-lwt-unix
dream-httpaf.dream-websocketaf-lwt
dream-httpaf.dream-websocketaf-lwt-unix
module AU = Angstrom.Unbuffered
type 'error parse_state =
| Done
| Fail of 'error
| Partial of Bigstringaf.t -> off:int -> len:int -> AU.more -> unit AU.state
type 'error t = {
parser : unit Angstrom.t;
mutable parse_state : 'error parse_state;
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 'a | `Read ]