Loading TOC...

xdmp.getRequestHeader

xdmp.getRequestHeader(
   $name as String,
   [$default as String?]
) as Sequence

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.getRequestHeader("A");
=> "foo"

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.