Mhttp_serverSourceThe type of errors.
Type of switches to stop a HTTP server.
switch stop turns off the HTTP server associated to the given stop. It call registered (by the HTTP server) finalizers and terminates. If the given switch is already off, it does nothing.
The type of connection used to communicate with the client.
A request consisting of a method (see Method), a target (the path requested by the client), a scheme (whether the client used "http" or "https") and a headers.
val clear :
?kind:Mnet.TCP.buffer Mnet.TCP.kind ->
?stop:stop ->
?config:H1.Config.t ->
?ready:unit Miou.Computation.t ->
?error_handler:error_handler ->
?upgrade:(Mnet.TCP.buffer Mnet.TCP.flow -> unit) ->
handler:handler ->
Mnet.TCP.state ->
port:int ->
unitval with_tls :
?stop:stop ->
?config:
[ `Both of H1.Config.t * H2.Config.t
| `H2 of H2.Config.t
| `HTTP_1_1 of H1.Config.t ] ->
?ready:unit Miou_sync.Computation.t ->
?error_handler:error_handler ->
Tls.Config.server ->
?upgrade:(Mnet_tls.t -> unit) ->
handler:handler ->
Mnet.TCP.state ->
port:int ->
unit