package dream-httpaf
Internal: shared http/af stack for Dream (server) and Hyper (client)
Install
dune-project
Dependency
Authors
Maintainers
Sources
dream-1.0.0-alpha6.tar.gz
sha256=8d3b6344c0e175aca628b3d5bb8ee58265e8c1074fc2d40d63f136fef83daf90
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) t = {
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) t
Source
val finish_stream :
((('a, 'b) active_state, 'c, 'd) state, 'e, 'f) t ->
closed_reason ->
unit
Source
val error_code :
((('a, 'b) active_state, 'c, 'd) state, [> `Exn of exn ] as 'e, 'f) t ->
'e option
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>