MarkLogic Server 11.0 Product Documentation
xdmp:request-forwarded

xdmp:request-forwarded() as xs:boolean

Summary

Returns true if the current HTTP or XDBC request was forwarded via a proxy or load balancer, as indicated by the presence of an X-Forwarded-For HTTP header (case-insensitive). Returns false if no such header is present, or if the function is not called from an HTTP or XDBC request context.

Example

xdmp:request-forwarded()
=> true (if an X-Forwarded-For header was present on the request)
Powered by MarkLogic Server | Terms of Use | Privacy Policy