package naboris

  1. Overview
  2. Docs
Simple http server

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.2.tar.gz
md5=ca1ecbc038f43cd52a03f1a0c0ee5964
sha512=ead6418f5f49d377a1a82154251f6ea2e3034db921def2625ce08d619dfa1088b51eceae29d7b976a22d570ea3d6a7855320ea57bec01c4adf1565cecb22a5e6

doc/naboris/Naboris/index.html

Module Naboris

val listen : ?inetAddr:Unix.inet_addr -> int -> 'sessionData ServerConfig.t -> 'a Lwt.t * 'a Lwt.u

Will start an http server listening at inetAddr on port int with ServerConfig.t('sessionData).

val listenAndWaitForever : ?inetAddr:Unix.inet_addr -> int -> 'sessionData ServerConfig.t -> 'a Lwt.t

Same as listen but will specifically throw away the Lwt.u('a) and never resolve the promise. Keeping the server alive until the process is killed.

module ErrorHandler : sig ... end

Module with error handler types.

module Req : sig ... end

Module for working with incoming requests.

module Res : sig ... end

Module for creating and sending responses.

module Route : sig ... end

Module to extract routing data.

module ServerConfig : sig ... end

Module for configuring the naboris http server.

module Session : sig ... end

Module for working with sessions and session data.

module Method : sig ... end

Module with types used for matching requests.

module Middleware : sig ... end

Module defining middleware functions.

module RequestHandler : sig ... end

Module defining RequestHandler functions.

module Query : sig ... end

Map type for working with queries from routed requests.

Less commonly used.

module MimeTypes : sig ... end

Less commonly used.

module SessionManager : sig ... end

Less commonly used.

module Router : sig ... end

Less commonly used.

module SessionConfig : sig ... end

Less commonly used.

OCaml

Innovation. Community. Security.