package ocsigenserver

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

5.0.0.tar.gz
md5=ac7f9fcf1aced530061ceb4c76efe475
sha512=5691d1cc53725466bf0548fdaa8b4b624b9ac20aa41152f61020da05696a2d0e3cd010d9d72aa60d55216ca4b1b3938573e00c7d922e034d1080508ec46b47dd

doc/ocsigenserver/Ocsigen_cohttp/index.html

Module Ocsigen_cohttpSource

Sourceexception Ocsigen_http_error of Ocsigen_cookie_map.t * Cohttp.Code.status
Sourceexception 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.

Sourceexception Ocsigen_is_dir of Ocsigen_request.t -> Uri.t

compute a redirection if path links to a directory

Sourceval get_number_of_connected : unit -> int

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

Sourceval shutdown : float option -> unit

Shutdown main loop of server

Sourceval service : ?ssl:(string * string * (bool -> string) option) -> address:Ocsigen_config.socket_type -> port:int -> connector:(Ocsigen_request.t -> Ocsigen_response.t Lwt.t) -> unit -> unit Lwt.t

initialize a main loop of http server