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-websocketaf/Dream_websocketaf/Client_connection/index.html
Module Dream_websocketaf.Client_connection
Source
Source
type error = [
| Httpaf.Client_connection.error
| `Handshake_failure of Httpaf.Response.t * Httpaf.Body.Reader.t
]
Source
val connect :
nonce:string ->
?headers:Httpaf.Headers.t ->
sha1:(string -> string) ->
error_handler:
([> `Exn of exn
| `Handshake_failure of Httpaf.Response.t * Httpaf.Body.Reader.t
| `Invalid_response_body_length of Dream_httpaf___Httpaf.Response.t
| `Malformed_response of string ] ->
unit) ->
websocket_handler:(Wsd.t -> Websocket_connection.input_handlers) ->
string ->
t
Source
val create :
?error_handler:Wsd.error_handler ->
(Wsd.t -> Websocket_connection.input_handlers) ->
t
Source
val next_write_operation :
t ->
[ `Close of int | `Write of Bigstringaf.t Faraday.iovec list | `Yield ]
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>