Method XHR.setRequestHeader
Set a request header.
-
Syntax
undefined XHR.setRequestHeader(String header , String value )
Mapping of the native setRequestHeader -
Parameters
String header- The name of the header
String value- The value of the header
-
Return value
No explicit return value. Default value of
undefinedis returned. -
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
This function has dependencies and will not work stand-alone. Use the download button above instead of copy/paste.
