- @DomName('XMLHttpRequest.setRequestHeader')
- @DocsEditable()
Sets the value of an HTTP requst header.
This method should be called after the request is opened, but before the request is sent.
Multiple calls with the same header will combine all their values into a single header.
Other resources
- XMLHttpRequest.setRequestHeader) from MDN.
- The setRequestHeader() method-method) from W3C.
Source
@DomName('XMLHttpRequest.setRequestHeader') @DocsEditable() void setRequestHeader(String name, String value) => _blink.BlinkXMLHttpRequest.instance .setRequestHeader_Callback_2_(this, name, value);