package dream-httpaf

  1. Overview
  2. Docs
Internal: shared http/af stack for Dream (server) and Hyper (client)

Install

Dune Dependency

Authors

Maintainers

Sources

dream-1.0.0-alpha5.tar.gz
sha256=05bc7f6aff94893c151f3a5bcdee3328920c69b3763fac49ba27348dc7745901
md5=de6f6908ae899c9e85f2c751a0263932

doc/dream-httpaf.dream-websocketaf/Dream_websocketaf/Parse/Reader/index.html

Module Parse.ReaderSource

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

Innovation. Community. Security.