package dream-httpaf
Internal: shared http/af stack for Dream (server) and Hyper (client)
Install
Dune Dependency
Authors
Maintainers
Sources
dream-1.0.0-alpha3.tar.gz
sha256=f289253109aee39ab912f9f38aa5e7b44e0b4b01fd7d3dd5c407b034c57f01bc
md5=148588e6f584cd9f2438e56da7df2f56
doc/src/dream-httpaf.websocketaf/client_handshake.ml.html
Source file client_handshake.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
module IOVec = Httpaf.IOVec type t = { connection : Httpaf.Client_connection.t ; body : Httpaf.Body.Writer.t } (* TODO(anmonteiro): yet another argument, `~config` *) let create ~nonce ~headers ~error_handler ~response_handler target = let connection = Httpaf.Client_connection.create ?config:None in let body = Httpaf.Client_connection.request connection (Handshake.create_request ~nonce ~headers target) ~error_handler ~response_handler in { connection ; body } ;; let next_read_operation t = Httpaf.Client_connection.next_read_operation t.connection let next_write_operation t = Httpaf.Client_connection.next_write_operation t.connection let read t = Httpaf.Client_connection.read t.connection let yield_reader t = Httpaf.Client_connection.yield_reader t.connection let report_write_result t = Httpaf.Client_connection.report_write_result t.connection let yield_writer t = Httpaf.Client_connection.yield_writer t.connection let report_exn t exn = Httpaf.Client_connection.report_exn t.connection exn let is_closed t = Httpaf.Client_connection.is_closed t.connection let close t = Httpaf.Body.Writer.close t.body; Httpaf.Client_connection.shutdown t.connection
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>