@@ -1064,6 +1064,31 @@ class AjaxRequestReadyState {
...
@@ -1064,6 +1064,31 @@ class AjaxRequestReadyState {
intgethashCode=>_value.hashCode;
intgethashCode=>_value.hashCode;
}
}
///AjaxRequestHeaders class represents the HTTP headers of an [AjaxRequest].
classAjaxRequestHeaders{
Map<dynamic,dynamic>_headers;
Map<String,dynamic>_newHeaders={};
AjaxRequestHeaders(this._headers);
///Gets the HTTP headers of the [AjaxRequest].
Map<dynamic,dynamic>getHeaders(){
returnthis._headers;
}
///Sets/updates an HTTP header of the [AjaxRequest]. If there is already an existing [header] with the same name, the values are merged into one single request header.
///For security reasons, some headers can only be controlled by the user agent.
///These headers include the [forbidden header names](https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name)