Spec-Zone.ru › Dart 2

dart:html

setRequestHeader method

void setRequestHeader(
  1. String name,
  2. String value
)

Sets the value of an HTTP request 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 from W3C.

Implementation

void setRequestHeader(String name, String value) native;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-html/HttpRequest/setRequestHeader.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API