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/Stream/index.html
Module Dream_h2.Stream
Source
Source
type partial_headers = {
mutable parse_state : (Headers.t, Hpack.error) result AB.state;
end_stream : bool;
}
Source
type 'active_peer remote_state =
| WaitingForPeer
| PartialHeaders of partial_headers
| FullHeaders
| ActiveMessage of 'active_peer
Source
type ('opn, 'half_closed) active_state =
| Open of 'opn remote_state
| HalfClosed of 'half_closed
Source
type ('active_state, 'active, 'reserved) state =
| Idle
| Reserved of 'reserved
| Active of 'active_state * 'active
| Closed of closed
constraint 'active_state = (_, _) active_state
Source
type ('state, 'error, 'error_handler) stream = {
id : Stream_identifier.t;
writer : Serialize.Writer.t;
error_handler : 'error_handler;
mutable error_code : 'error error_status;
mutable state : 'state;
mutable max_frame_size : int;
on_close : active:bool -> closed -> unit;
} constraint 'state = (_, _, _) state
Source
val create :
Stream_identifier.t ->
max_frame_size:int ->
Serialize.Writer.t ->
'a ->
(active:bool -> closed -> unit) ->
((('b, 'c) active_state, 'd, 'e) state, 'f, 'a) stream
Source
val finish_stream :
((('a, 'b) active_state, 'c, 'd) state, 'e, 'f) stream ->
closed_reason ->
unit
Source
val error_code :
((('a, 'b) active_state, 'c, 'd) state, [> `Exn of exn ] as 'e, 'f) stream ->
'e option
Source
val reset_stream :
((('a, 'b) active_state, 'c, 'd) state, 'e, 'f) stream ->
Error_code.t ->
unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>