package piaf

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Piaf.ServerSource

Sourcemodule Config : sig ... end
Sourcemodule Service : sig ... end
Sourcemodule Middleware : sig ... end
Sourcemodule Handler : sig ... end
Sourcetype 'ctx ctx = 'ctx Handler.ctx = {
  1. ctx : 'ctx;
  2. request : Request.t;
}
Sourcemodule Error_response : sig ... end
Sourcetype error_handler = Eio.Net.Sockaddr.stream -> ?request:Request.t -> respond:(headers:Headers.t -> Body.t -> Error_response.t) -> Error.server -> Error_response.t
Sourcetype t
Sourceval create : ?error_handler:error_handler -> config:Config.t -> Request_info.t Handler.t -> t
Sourcemodule Command : sig ... end
Sourceval http_connection_handler : t -> Command.connection_handler

connection_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.