Skip to content

Instantly share code, notes, and snippets.

@joewiz
Created October 22, 2019 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joewiz/68b4fbcd27dd808b1bb384b4afbc04b8 to your computer and use it in GitHub Desktop.
Save joewiz/68b4fbcd27dd808b1bb384b4afbc04b8 to your computer and use it in GitHub Desktop.
Display all HTTP request headers for the current request (eXist-db)
xquery version "3.1";
array {
request:get-header-names() ! map { . : request:get-header(.) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment