MarkLogic 12 EA 1 Product Documentation
xdmp:get-request-header

xdmp:get-request-header(
   $name as xs:string,
   [$default as xs:string?]
) as xs:string*

Summary

Returns the value of a named request header.

Parameters
name Request header name.
default A default value to return if there is no request header.

Example

xdmp:get-request-header("A")
=> "foo"
Powered by MarkLogic Server | Terms of Use | Privacy Policy