package dream-httpaf
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-h2/Dream_h2/Parse/Reader/index.html
Module Parse.Reader
Source
Source
type parse_error = [
| `Parse of string list * string
| `Error of Error.t
| `Error_code of Error_code.t
]
Source
type 'error parse_state =
| Initial
| Fail of 'error
| Partial of Bigstringaf.t -> off:int -> len:int -> AU.more -> (unit, 'error) result AU.state
Source
type 'error t = {
parser : (unit, 'error) result Angstrom.t;
mutable parse_state : 'error parse_state;
mutable closed : bool;
parse_context : parse_context;
}
Source
val settings_preface :
parse_context ->
(Frame.t * Settings.settings_list, [> `Error of Error.t ]) result Angstrom.t
Source
val connection_preface_and_frames :
max_frame_size:int ->
(parse_context -> ('a * 'b, 'c) result Angstrom.t) ->
('a -> 'b -> 'd) ->
((Frame.t, Error.t) result -> 'e) ->
'c t
Source
val transition :
([> `Error_code of Error_code.t | `Parse of string list * string ] as 'a) t ->
(unit, 'a) result AU.state ->
int
Source
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
Source
val next_from_error :
'a t ->
?msg:string ->
Error_code.t ->
[> `Close | `Error of Error.t | `Read ]
Source
val next :
[< `Error of Error.t
| `Error_code of Error_code.t
| `Parse of string list * string ]
t ->
[> `Close | `Error of Error.t | `Read ]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>