macro.responseHeaders

From RPTools Wiki
Jump to navigation Jump to search

The variable macro.responseHeaders holds a (possibly empty) JSON Object which contains all headers returned by an MTscript macro when called by the XMLHttpRequest() and fetch() functions.

Additional details on how this variable is used when a macro is invoked from JavaScript are available in the XMLHttpRequest() and fetch() pages.