AjaxRequestHeaders class
Class that represents the HTTP headers of an AjaxRequest.
Constructors
-
AjaxRequestHeaders(Map<
String, dynamic> _headers)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getHeaders(
) → Map< String, dynamic> - Gets the HTTP headers of the AjaxRequest.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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> - Converts instance to a map.
-
toMap(
) → Map< String, dynamic> - Converts instance to a map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? map) → AjaxRequestHeaders? - Gets a possible AjaxRequestHeaders instance from a Map value.