package ocsigenserver

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

Install

Dune Dependency

Authors

Maintainers

Sources

6.0.0.tar.gz
md5=001e22ec2da3ab08840f934a8f005859
sha512=59f36fdf0a640117aa562d1d9ef96b7146843d9b72d71d01366640521405550074e03267fb388c5e685542781fc4bce763818a36cf05c0e033fae5e51c2f1496

doc/ocsigenserver/Ocsigen_cohttp/index.html

Module Ocsigen_cohttpSource

Sourceval section : Lwt_log_core.section

use Lwt_log.Section.set_level in order to debug

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

OCaml

Innovation. Community. Security.