returns the sub path of the URL using the type Eliom_lib.Url.path. The sub-path is the full path without the path of the site (set in the configuration file).
val get_header_hostname : unit ->string option
returns the hostname that has been sent by the user agent. For HTTP/1.0, the Host field is not mandatory in the request.
val get_hostname : unit -> string
returns the hostname used for absolute links. It is either the Host header sent by the browser or the default hostname set in the configuration file, depending on server configuration (<usedefaulthostname/> option).
val get_server_port : unit -> int
returns the port of the server. It is either the default port in the configuration file (if <usedefaulthostname/> is present is the configuration file), or the port in the Host header of the request (if present), or the port on which the request has been done (otherwise).
val get_ssl : unit -> bool
returns true if https is used, false if http.
val get_accept_language : unit ->(string * float option) list
returns the (string * float option) list corresponding to accept_language HTTP header of the request.
returns a table in which you can store all the data you want during a request. It can also be used to send information after an action. Keep an eye on this information to know what succeeded before the current service was called (failed connection, timeout ...) The table is created at the beginning of the request.
val get_link_too_old : unit -> bool
returns true if the coservice called has not been found. In that case, the current service is the fallback.
The usual way to get parameters with Eliom is to use the second and third parameters of the service handlers. These are low level functions you may need for more advanced use.
val get_get_params : unit ->(string * string list) list
returns the parameters of the URL (GET parameters) that concern the running service. For example in the case of a non-attached coservice called from a page with GET parameters, only the parameters of that non-attached coservice are returned (even if the other are still in the URL).
val get_all_current_get_params : unit ->(string * string) list
returns current parameters of the URL (GET parameters) (even those that are for subsequent services, but not previous actions)
val get_other_get_params : unit ->(string * string) list
returns the parameters of the URL (GET parameters) that do not concern the running service.
val get_nl_get_params : unit ->(string * string) listEliom_lib.String.Table.t
returns non localized parameters in the URL.
val get_persistent_nl_get_params :
unit ->(string * string) listEliom_lib.String.Table.t
returns persistent non localized parameters in the URL.
val get_nl_post_params :
unit ->(string * string) listEliom_lib.String.Table.t
returns non localized POST parameters.
val get_post_params : unit ->(string * string) listLwt.t option
returns the parameters in the body of the HTTP request (POST parameters) that concern the running service. None means that POST data where neither urlencoded form data or multipart data.
val get_all_post_params : unit ->(string * string) list option
returns all parameters in the body of the HTTP request (POST parameters) (even those that are for another service)
returns 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_hostname : unit -> string
returns the hostname used for absolute links, computed when launching the client side process for the first time. If there is no client side process, same as get_hostname.
It is either the Host header sent by the browser or the default hostname set in the configuration file, depending on server configuration (<usedefaulthostname/> option).
val get_csp_server_port : unit -> int
returns the port of the server, used when launching the client side process (not the current request). It corresponds to the port in the URL of the browser. If there is no client side process, same as get_server_port.
val get_csp_ssl : unit -> bool
returns 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.