package ocsigenserver

  1. Overview
  2. Docs
A full-featured and extensible Web server

Install

dune-project
 Dependency

Authors

Maintainers

Sources

8.0.0.tar.gz
md5=be7a28e3a79cc028d35c88eca538ee8b
sha512=08cdaab31864aeba743ad0c03077a6eccf1089e7b7c4078045dab9409d409144b70cc546df7881b64b780689eee642ca2391be84ab2a6a8ffee0fbed2ad5ac98

doc/ocsigenserver/Ocsigen/Ocsigen_cohttp/index.html

Module Ocsigen.Ocsigen_cohttp

val section : Logs.src
exception Ocsigen_http_error of Ocsigen_cookie_map.t * Cohttp.Code.status
exception Ext_http_error of Cohttp.Code.status * string option * Cohttp.Header.t option

Exception raised by exceptions to describe an HTTP error. It is possible to pass the code of the error, an optional comment, and optionally some headers.

exception Ocsigen_is_dir of Request.t -> Uri.t

compute a redirection if path links to a directory

val get_number_of_connected : unit -> int

accessor to get number of client (used by eliom monitoring)

val shutdown : float option -> unit

Shutdown main loop of server

val service : ?ssl:(string * string * (bool -> string) option) -> address:Config.socket_type -> port:int -> connector:(Request.t -> Response.t Lwt.t) -> unit -> unit Lwt.t

initialize a main loop of http server