Functor Ows.Params_based


module Params_based: 
functor (C : Conf) -> sig .. end
A functor to create the module with the functions to manage sessions between pages in the parameters (URLs or Forms).
Parameters:
C : Conf

type user_id = C.t 
type arg = string * string 
An argument for a page
type handler = Ows.hostname ->
(user_id * string) option ->
arg list -> Toolhtml.doc
A handler is a function to call for a given page. The function takes Then the function returns an HTML document.
val register : Ows.page -> handler -> unit
Register a page handler.
val arg_of_session_id : Ows.session_id -> string
Take a session id and returns the code to append to an url to use the same session id for the page at this url.
val arg_of_page : Ows.page -> string
Take a page name and build the code to append to an url to go to this page.
val cgibin : unit -> string
Return the cgi-bin url.
val cgibin_of_page : Ows.page -> string
Take a page name a return the cgi-bin url to go to that page.
val handle : handler -> unit
Handle the required page (according to the value of the variable for the page in the url. This is the function to call at the end of the program. The default handler is given in argument.