xdmp:get-request-header( $name as xs:string, [$default as xs:string?] ) as xs:string*
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. |
xdmp:get-request-header("A") => "foo"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.