Module Ocsigen.Ocsigen_cohttp
val section : Logs.srcexception Ocsigen_http_error of Ocsigen_cookie_map.t * Cohttp.Code.statusexception Ext_http_error of Cohttp.Code.status * string option * Cohttp.Header.t optionException 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.tcompute a redirection if path links to a directory
val get_number_of_connected : unit -> intaccessor to get number of client (used by eliom monitoring)
val shutdown : float option -> unitShutdown 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.tinitialize a main loop of http server