package piaf
Module Piaf.ServerSource
Source
type error_handler =
Eio.Net.Sockaddr.stream ->
?request:Request.t ->
respond:(headers:Headers.t -> Body.t -> Error_response.t) ->
Error.server ->
Error_response.tconnection_handler server returns an HTTP/1.1 connection handler suitable to be passed to e.g. Eio.Net.accept_fork. It is generally recommended to use the Command module instead.
connection_handler server returns an HTTPS connection handler suitable to be passed to e.g. Eio.Net.accept_fork, which can speak both HTTP/1 and HTTP/2, according to its configuration. It is generally recommended to use the Command module instead.