HttpRestRequest 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 HttpRestRequest to RowRequest, responseConverterType which will convert the RowResponse to HttpRestResponse, and request encoding.
Constructors
-
HttpRestRequest.new({required Methods method, required String url, Type? requestConverterType, Type? responseConverterType, Map<
String, String> ? headers, dynamic body, Encoding? encoding, HttpRequestProgressListener? readProgressListener, HttpRequestProgressListener? writeProgressListener, int? writeChunkSize})
Properties
- body → dynamic
-
final
- encoding → Encoding?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
final
- method → Methods
-
final
- readProgressListener → HttpRequestProgressListener?
-
final
- requestConverterType → Type?
-
final
- responseConverterType → Type?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
final
- writeChunkSize → int?
-
final
- writeProgressListener → HttpRequestProgressListener?
-
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