Contents

setRequestHeader

Appends a header to the list of request headers.

Declaration

void setRequestHeader(
    in String header, 
    in String value
);
void setRequestHeader(
    DOMString header, 
    DOMString value
);

Parameters

  • header:

    The header name.

  • value:

    The header value.

Discussion

If the header already exists in the list of request headers, the specified value is combined with the value currently in the list to create a single request header.

See Also

Manipulating the Header List