Module Naboris
val listen : ?inetAddr:Unix.inet_addr -> int -> 'sessionData ServerConfig.t -> 'a Lwt.t * 'a Lwt.uWill start an http server listening at
inetAddron portintwithServerConfig.t('sessionData).
val listenAndWaitForever : ?inetAddr:Unix.inet_addr -> int -> 'sessionData ServerConfig.t -> 'a Lwt.tSame as
listenbut will specifically throw away theLwt.u('a)and never resolve the promise. Keeping the server alive until the process is killed.
module ErrorHandler : sig ... endModule with error handler types.
module Req : sig ... endModule for working with incoming requests.
module Res : sig ... endModule for creating and sending responses.
module Route : sig ... endModule to extract routing data.
module ServerConfig : sig ... endModule for configuring the naboris http server.
module Session : sig ... endModule for working with sessions and session data.
module Method : sig ... endModule with types used for matching requests.
module Middleware : sig ... endModule defining middleware functions.
module RequestHandler : sig ... endModule defining RequestHandler functions.
module Query : sig ... endMaptype for working with queries from routed requests.
module Cookie : sig ... endLess commonly used.
module MimeTypes : sig ... endLess commonly used.
module SessionManager : sig ... endLess commonly used.
module Router : sig ... endLess commonly used.
module SessionConfig : sig ... endLess commonly used.