Dream_h2.ReqdSourcetype 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.ttype request_info = {request : Request.t;request_body : Body.Reader.t;mutable request_body_bytes : int64;}type active_stream = {body_buffer_size : int;encoder : Dream_h2.Stream.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;}val create_active_stream :
Dream_h2.Stream.Hpack.Encoder.t ->
int ->
(Stream_identifier.t ->
(t, [ `Push_disabled | `Stream_ids_exhausted ]) result) ->
active_streamval request :
(((request_info, request_info) Stream.active_state, 'a, request_info * 'b)
Stream.state,
'c,
'd)
Stream.stream ->
Request.tval request_body :
(((request_info, request_info) Stream.active_state, 'a, 'b) Stream.state,
'c,
'd)
Stream.stream ->
Body.Reader.tval response :
((('a, 'b) Stream.active_state, active_stream, 'c * active_stream)
Stream.state,
'd,
'e)
Stream.stream ->
Response.t optionval response_exn :
((('a, 'b) Stream.active_state, active_stream, 'c * active_stream)
Stream.state,
'd,
'e)
Stream.stream ->
Response.tval send_fixed_response :
((('a, 'b) Stream.active_state, 'c, 'd) Stream.state, 'e, 'f) Stream.stream ->
active_stream ->
Response.t ->
[< `Bigstring of Bigstringaf.t | `String of string ] ->
unitval schedule_trailers :
((('a, 'b) Stream.active_state, active_stream, 'c) Stream.state, 'd, 'e)
Stream.stream ->
Headers.t ->
unitval unsafe_respond_with_data :
((('a, 'b) Stream.active_state, active_stream, 'b * active_stream)
Stream.state,
'c,
'd)
Stream.stream ->
Response.t ->
[< `Bigstring of Bigstringaf.t | `String of string ] ->
unitval respond_with_string :
((('a, 'b) Stream.active_state, active_stream, 'b * active_stream)
Stream.state,
'c,
'd)
Stream.stream ->
Response.t ->
string ->
unitval respond_with_bigstring :
((('a, 'b) Stream.active_state, active_stream, 'b * active_stream)
Stream.state,
'c,
'd)
Stream.stream ->
Response.t ->
Bigstringaf.t ->
unitval send_streaming_response :
flush_headers_immediately:bool ->
((('a, 'b) Stream.active_state, 'c, 'd) Stream.state, 'e, 'f) Stream.stream ->
active_stream ->
Response.t ->
Body.Writer.tval unsafe_respond_with_streaming :
((('a, 'b) Stream.active_state, active_stream, 'b * active_stream)
Stream.state,
'c,
'd)
Stream.stream ->
flush_headers_immediately:bool ->
Response.t ->
Body.Writer.tval respond_with_streaming :
((('a, 'b) Stream.active_state, active_stream, 'b * active_stream)
Stream.state,
'c,
'd)
Stream.stream ->
?flush_headers_immediately:bool ->
Response.t ->
Body.Writer.tval start_push_stream :
((('a, 'b) Stream.active_state, 'c, 'd) Stream.state, 'e, 'f) Stream.stream ->
active_stream ->
Request.t ->
(t, [ `Push_disabled | `Stream_cant_push | `Stream_ids_exhausted ]) resultval unsafe_push :
((('a, 'b) Stream.active_state, active_stream, 'c) Stream.state, 'd, 'e)
Stream.stream ->
Request.t ->
(t, [ `Push_disabled | `Stream_cant_push | `Stream_ids_exhausted ]) resultval push :
((('a, 'b) Stream.active_state, active_stream, 'c) Stream.state, 'd, 'e)
Stream.stream ->
Request.t ->
(t, [ `Push_disabled | `Stream_cant_push | `Stream_ids_exhausted ]) resultval report_error :
(((request_info, request_info) Stream.active_state,
active_stream,
request_info * active_stream)
Stream.state,
error,
error_handler)
Stream.stream ->
error ->
Error_code.t ->
unitval report_exn :
(((request_info, request_info) Stream.active_state,
active_stream,
request_info * active_stream)
Stream.state,
error,
error_handler)
Stream.stream ->
exn ->
unitval try_with :
(((request_info, request_info) Stream.active_state,
active_stream,
request_info * active_stream)
Stream.state,
error,
error_handler)
Stream.stream ->
(unit -> 'a) ->
(unit, exn) Result.resultval error_code :
((('a, 'b) Stream.active_state, 'c, 'd) Stream.state,
[> `Exn of exn ] as 'e,
'f)
Stream.stream ->
'e optionval requires_output :
((('a, 'b) Stream.active_state, active_stream, 'c) Stream.state, 'd, 'e)
Stream.stream ->
boolval flush_request_body :
(((request_info, request_info) Stream.active_state,
active_stream,
request_info * active_stream)
Stream.state,
error,
error_handler)
Stream.stream ->
unitval write_buffer_data :
Dream_h2.Stream.Writer.t ->
off:int ->
len:int ->
Dream_h2__Serialize.frame_info ->
[< `Bigstring of Bigstringaf.t | `String of string ] ->
unitval close_stream :
((('a, 'b) Stream.active_state, 'c, 'd) Stream.state, 'e, 'f) Stream.stream ->
unitval flush_response_body :
((('a, 'b) Stream.active_state, active_stream, 'c) Stream.state, 'd, 'e)
Stream.stream ->
max_bytes:int ->
intval deliver_trailer_headers :
((('a, 'b) Stream.active_state, active_stream, 'c) Stream.state, 'd, 'e)
Stream.stream ->
Headers.t ->
unit