Changes

Jump to navigation Jump to search
478 bytes added ,  12:54, 20 June 2013
no edit summary
This [[Module Library|XQuery Module]] contains functions for retrieving information on an HTTP request that has triggered the query. It is mainly useful in the context of [[Web Application]]s.
The module is mainly derived from related to Adam Retter’s upcoming [http://exquery.github.com/expath-specs-playground/request-module-1.0-specification.html EXQuery Request Module].
=Conventions=
| '''Summary'''
|Returns the Method of the HTTP request.
|}
 
==request:attribute==
 
{{Mark|Introduced with Version 7.7:}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|request:attribute||xs:string}}
|-
| '''Summary'''
|Returns the value of an attribute of the HTTP request. If the attribute does not exist, an empty sequence is returned.
|-
| '''Example'''
|{{Code|request:attribute("javax.servlet.error.request_uri") returns the original URI of a caught error.}}
|}
=Changelog=
 
;Version 7.7
 
* Added: [[#request:attribute|request:attribute]]
This module was introduced with Version 7.5.
[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu