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/Reqd/index.html
Module Dream_h2.Reqd
Source
Source
type response_state =
| Waiting
| Fixed of {
response : Response.t;
mutable iovec : [ `String of string | `Bigstring of Bigstringaf.t ] Httpaf.IOVec.t;
}
| Streaming of {
response : Response.t;
response_body : Body.Writer.t;
trailers : Headers.t;
}
| Complete of Response.t
Source
type request_info = {
request : Request.t;
request_body : Body.Reader.t;
mutable request_body_bytes : int64;
}
Source
type active_stream = {
body_buffer_size : int;
encoder : Hpack.Encoder.t;
mutable response_state : response_state;
mutable trailers_parser : Stream.partial_headers option;
mutable trailers : Headers.t option;
create_push_stream : Stream_identifier.t -> (t, [ `Push_disabled | `Stream_ids_exhausted ]) result;
}
Source
val create_active_stream :
Hpack.Encoder.t ->
int ->
(Stream_identifier.t ->
(t, [ `Push_disabled | `Stream_ids_exhausted ]) result) ->
active_stream
Source
val send_fixed_response :
t ->
active_stream ->
Response.t ->
[< `Bigstring of Bigstringaf.t | `String of string ] ->
unit
Source
val unsafe_respond_with_data :
t ->
Response.t ->
[< `Bigstring of Bigstringaf.t | `String of string ] ->
unit
Source
val send_streaming_response :
flush_headers_immediately:bool ->
t ->
active_stream ->
Response.t ->
Body.Writer.t
Source
val unsafe_respond_with_streaming :
t ->
flush_headers_immediately:bool ->
Response.t ->
Body.Writer.t
Source
val respond_with_streaming :
t ->
?flush_headers_immediately:bool ->
Response.t ->
Body.Writer.t
Source
val error_code :
((('a, 'b) Stream.active_state, 'c, 'd) Stream.state,
[> `Exn of exn ] as 'e,
'f)
Stream.t ->
'e option
Source
val write_buffer_data :
Writer.t ->
off:int ->
len:int ->
Dream_h2__Serialize.frame_info ->
[< `Bigstring of Bigstringaf.t | `String of string ] ->
unit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>