AjaxRequestHeaders class

Class that represents the HTTP headers of an AjaxRequest.


AjaxRequestHeaders(Map<String, dynamic> _headers)


hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


getHeaders() Map<String, dynamic>
Gets the HTTP headers of the AjaxRequest.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
setRequestHeader(String header, String value) → void
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 and forbidden response header names.
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Methods

fromMap(Map<String, dynamic>? map) AjaxRequestHeaders?