macro.requestHeaders

From RPTools Wiki
Revision as of 21:55, 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.requestHeaders holds a (possibly empty) JSON Object which contains all headers used in XMLHttpRequest() and fetch() calls from the UI functions frame5(), dialog5(), html.frame5(), html.dialog5(), and so forth.

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