EXQuery HTTP Request Module 1.0.
req:address() as xs:string
Gets the IP address of the server that received the HTTP Request
req:cookie($cookie-name as xs:string) as xs:string?
Gets the value of the named Cookie in the HTTP Request. If there is no such cookie, then an empty sequence is returned.
$cookie-name | The name of the cookie to retrieve the value of. |
req:cookie($cookie-name as xs:string, $default as xs:string) as xs:string
Gets he value of the named Cookie in the HTTP Request. If there is no such cookie in the HTTP Request, then the value specified in $default is returned instead.
$cookie-name | The name of the cookie to retrieve the value of. |
$default | The default value to use if the named cookie is not present in the request. |
req:header($header-name as xs:string) as xs:string?
Gets the value of the named HTTP Header in the HTTP Request. If there is no such header, then an empty sequence is returned.
$header-name | The name of the HTTP Header to retrieve the value of. |
req:header($header-name as xs:string, $default as xs:string) as xs:string
Gets the value of the named HTTP Header in the HTTP Request. If there is no such header in the HTTP Request, then the value specified in $default is returned instead.
$header-name | The name of the HTTP Header to retrieve the value of. |
$default | The default value to use if the named HTTP Header is not present in the request. |
req:header-names() as xs:string+
Gets the names of HTTP Headers available in the HTTP Request.
req:hostname() as xs:string
Gets the Hostname fragment of the Authority component of the URI of the HTTP Request.
req:method() as xs:string
Gets the HTTP Method of the Request e.g. GET.
req:parameter($parameter-name as xs:string) as xs:string*
Gets the values of the named parameter from the HTTP Request. If there is no such parameter in the HTTP Request, then an empty sequence is returned.
$parameter-name | The name of the parameter to retrieve values of. |
req:parameter($parameter-name as xs:string, $default as xs:string*) as xs:string*
Gets the values of the named parameter from the HTTP Request. If there is no such parameter in the HTTP Request, then the value specified in $default is returned instead.
$parameter-name | The name of the parameter to retrieve values of. |
$default* | The default value(s) to use if the named parameter is not present in the request. |
req:parameter-names() as xs:string*
Gets the names of parameters available in the HTTP Request.
req:path() as xs:string
Gets the Path component of the URI of the HTTP Request.
req:port() as xs:integer
Gets the Port fragment of the Authority component of the URI of the HTTP Request. If the port is not explicitly specified in the URI, then the default port for the HTTP Scheme is returned (i.e. 21 for FTP, 80 for HTTP and 443 for HTTPS).
req:query() as xs:string?
Gets the Query Component of the HTTP Request URI, if there is no query component then an empty sequence is returned.
req:remote-address() as xs:integer
Gets the IP address of the client or the last proxy that sent the HTTP Request.
req:remote-hostname() as xs:string
Gets the fully qualified hostname of the client or the last proxy that sent the HTTP Request. If the name of the remote host cannot be established, this method behaves as request:remote-address(), and returns the IP address.
req:remote-port() as xs:integer
Gets the TCP port number of the client socket or the last proxy that sent the HTTP Request..
req:scheme() as xs:string
Gets the Scheme of the HTTP Request e.g. https.
req:uri() as xs:string?
Gets the URI of the HTTP Request URI.