HermesRequest<RequestBody, ResponseBody> class
Use this class to create requests templates
Constructors
-
HermesRequest(HermesHttpClient _client, String _method, String _path, JsonEncoder<
RequestBody> _requestEncoder, JsonDecoder<ResponseBody> _responseParser, {Map<String, String> headers = const <String, String>{}, int maxAttempts = 3})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
final
- maxAttempts → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addHeader(
String key, String value) → dynamic -
call(
{Map< String, String> pathParams = const <String, String>{}, RequestBody? body}) → Future<ResponseBody> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeHeader(
String key) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited