RestRequest class
This class represents the properties of rest request it allows to configure request's method, URL path by url, headers, requestConverterType which will convert the RestRequest to RestRowRequest, responseConverterType which will convert the RestRowResponse to RestResponse, and request encoding.
Constructors
-
RestRequest({required RestMethods method, required String url, Type? requestConverterType, Type? responseConverterType, Map<
String, String> ? headers, dynamic body, Encoding? encoding})
Properties
- body → dynamic
-
final
- encoding → Encoding?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
final
- method → RestMethods
-
final
- requestConverterType → Type?
-
final
- responseConverterType → Type?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
final
Methods
-
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