Loading TOC...


   $uri as xs:string,
   [$options as (element()|map:map)?]
) as item()+


Sends the http OPTIONS method to the specified URI. Returns the http response for the specified URI.

uri The URI of the document whose options response is being requested.
options Options with which to customize this operation. You can specify options as either an XML element in the "xdmp:http" namespace, or as a map:map. For details on the supported options, see xdmp:http-get.

Required Privileges


Usage Notes

The http functions only operate on URIs that use the http or https schemes; specifying a URI that does not begin with http:// or https:// throws an exception.

If an http function times out, it throws a socket received exception (SVC-SOCRECV).


     <options xmlns="xdmp:http">
       <authentication method="digest">
=> the response from the HTTP server, for example:

<response xmlns="xdmp:http">

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