AjaxRequestHeaders class Null safety

Class that represents the HTTP headers of an AjaxRequest.

Constructors

AjaxRequestHeaders(Map<String, dynamic> _headers)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getHeaders() Map<String, dynamic>
Gets the HTTP headers of the AjaxRequest.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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>
toMap() Map<String, dynamic>
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?