request:getHeaders

Purpose

Used to access the set of values of a request headers.

If the request header exists then the returned sequence contains an item for each of its values. If the request header does not exist, the result depends on whether a default argument was provided. If it was, then it is returned as the result of this function, otherwise an empty sequence is returned.

Signature

request:getHeaders [name, default]

Parameter

Name Description Type Use
name The name of the request header xs:string required 
default The value to return if the request header is not present xs:string optional 

Related topics