Request class
HTTP Request object
Constructors
Properties
- body → dynamic
-
The body content in a form that enables retries (in most cases).
It can be List
final
- followRedirects → bool?
-
Whether this request should automatically follow redirects.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → Headers
-
HTTP Headers
final
- maxRedirects → int?
-
The maximum number of redirects to follow when followRedirects is
true
.final - method → String
-
HTTP method
final
- persistentConnection → bool?
-
The requested persistent connection state.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration?
-
The timeout for the underlying HTTP request. Framework-related overheads,
e.g. scheduling or proxy initialization is not counted against this time.
final
- uri → Uri
-
target URI
final
Methods
-
change(
{dynamic uri, dynamic headers, dynamic patchHeaders, dynamic body, Map< String, dynamic> ? form, Map<String, dynamic> ? json, Map<String, String> ? cookies, Encoding? encoding}) → Request - Creates a Request object by changing or augmenting the properties.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited