Module Eliom.Request_info
This module contains the functions you need to get (or set) information about current request.
Getting information about the request
val get_original_full_path_string : unit -> stringreturns the full path of the URL as first sent by the browser (not changed by previous extensions like rewritemod)
val get_nl_get_params : unit -> (string * string) list Lib.String.Table.treturns non localized parameters in the URL.
val get_site_dir : unit -> Lib.Url.pathreturns the root of the site.
val get_site_dir_option : unit -> Lib.Url.path optionreturns the root of the site.
val get_ignored_get_params : unit -> (string * string) listreturns the GET parameters that have been ignored using <ignoredgetparams/> in config file.
val get_ignored_post_params : unit -> (string * string) listreturns the POST parameters that have been ignored using <ignoredpostparams/> in config file.
Other low level functions
You probably don't need these functions.
Getting information about the URL of the client side process (csp)
Warning: it is different from the URL to which the request has been made.
val get_csp_original_full_path : unit -> Lib.Url.pathreturns the full path of the URL where the client-side process is running. If there is no client side process, same as get_original_full_path.
val get_csp_ssl : unit -> boolreturns true if https is used in the URL of the browser, false if http. If there is no client side process, same as get_ssl.