Request class
This class represents an HTTP request that can be made with Chopper.
- Annotations
-
- @immutable
Constructors
Properties
- baseUrl → String
-
final
- body → dynamic
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
final
- method → String
-
final
- multipart → bool
-
final
-
parameters
→ Map<
String, dynamic> -
final
-
parts
→ List<
PartValue> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
final
Methods
-
copyWith(
{HttpMethod? method, String? url, dynamic body, Map< String, dynamic> ? parameters, Map<String, String> ? headers, Encoding? encoding, List<PartValue> ? parts, bool? multipart, String? baseUrl}) → Request - Makes a copy of this request, replacing original values with the given ones.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBaseRequest(
) → Future< BaseRequest> -
Converts this Chopper Request into a
http.BaseRequest
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited