And you can get the headers via XQuery as in the following example (when 
running against an HTTP App Server):

xquery version "1.0-ml";
for $x in xdmp:get-request-header-names()
return
fn:concat($x, " | ", xdmp:get-request-header($x))

-Danny

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Eric Bloch
Sent: Wednesday, March 24, 2010 4:38 PM
To: General Mark Logic Developer Discussion
Subject: Re: [MarkLogic Dev General] Testing Response Headers

spig wrote:
> Does anyone know of a way to check response-headers? I'm trying to 
> unit test some internal functions and want to see if headers are being 
> set correctly.
>
> Any ideas?
If you want to unit test from within MarkLogic, you could make a request 
via xdmp:get and check the response headers there.



-Eric


_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to