Module type signatures for Cohttp components
The IO
module defines the blocking interface for reading
and writing to Cohttp streams
'a t
represents a blocking monad state
ic
represents an input channel
oc
represents an output channel
conn
represents the underlying network flow
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 fewer than len
if
input buffering is not sufficient to satisfy the request.
#
mutable headers
| : Header.t | ; | (* | HTTP request headers | *) |
#
mutable meth
| : Code.meth | ; | (* | HTTP request method | *) |
#
mutable uri
| : Uri.t | ; | (* | Full HTTP request uri | *) |
#
mutable version
| : Code.version | ; | (* | HTTP version, usually 1.1 | *) |
#
mutable encoding
| : Transfer.encoding | ; | (* | transfer encoding of this HTTP request | *) |
#
mutable encoding
| : Transfer.encoding | ; | (* | Transfer encoding of this HTTP response | *) |
#
mutable headers
| : Header.t | ; | (* | response HTTP headers | *) |
#
mutable version
| : Code.version | ; | (* | (** HTTP version, usually 1.1 *) | *) |
#
mutable status
| : Code.status_code | ; | (* | HTTP status code of the response | *) |
#
mutable flush
| : bool | ; |