macro.responseHeaders

From RPTools Wiki
Revision as of 21:56, 27 January 2024 by Azhrei (talk | contribs) (Initial creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.