package graphql-cohttp
Run GraphQL servers with `cohttp`
Install
Dune Dependency
Authors
Maintainers
Sources
graphql-0.13.0.tbz
sha256=555f088a05600fb121b8ab79e13c145172e26fc0fd0576872fdf027853f2653d
md5=089104444ae28ebcfa85fec88628507a
doc/graphql-cohttp/Websocket_handler/Make/argument-2-Ws/IO/index.html
Module Ws.IO
type 'a t = 'a IO.t
'a t
represents a blocking monad state
a >>= b
will pass the result of a
to the b
function. This is a monadic bind
.
val return : 'a -> 'a t
return a
will construct a constant IO value.
read_line ic
will read a single line terminated by CR or CRLF from the input channel ic
. It returns None
if EOF or other error condition is reached.
read ic len
will block until a maximum of len
characters are read from the input channel ic
. It returns an empty string if EOF or some other error condition occurs on the input channel, and can also return fewer than len
characters if input buffering is not sufficient to satisfy the request.
write oc s
will block until the complete s
string is written to the output channel oc
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>