|
From: Gregor J. <gr...@ja...> - 2013-05-31 10:04:22
|
Just in case somebody wants to achieve the same - I figured out how to do this.. When calling a generated JS function, it's possible to hand over a callback function. this function will have 'xmlHttpRequest' as one of its params. this obj has a method called "getResponseHeader". This makes is possible to access the header fields (such as Location) of the response. ----- Original Message ----- From: "Gregor Jarisch" <gr...@ja...> To: res...@li... Sent: Tuesday, May 28, 2013 4:00:25 PM Subject: [Resteasy-developers] Accessing Location Header from JSAPI Hi, in the JS client library it would be nice to access (all) header fields like Location. Then it would be possible to react to 201 or 303 responses containing a Link to another resource. Is this already possible? If not, shall I raise an (enhancement) issue on this one? - Gregor ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may _______________________________________________ Resteasy-developers mailing list Res...@li... https://lists.sourceforge.net/lists/listinfo/resteasy-developers |