APIRequest class

Request container

Contains request metadata and content which's being passed to API.call method

Constructors

APIRequest(String method, {String? methodId, int settings = APIFlags.waiting, bool useAuth = false, Map<String, String> data = const {}, Map<String, String> headers = const {}, APIHttpMethod httpMethod = APIHttpMethod.GET})
Creates new request
APIRequest.clone(APIRequest request)
Clone specified request
factory

Properties

data Map<String, String>
JSON body to be sent
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
Headers to be sent
final
httpMethod APIHttpMethod
HTTP method of the request
final
method String
Request method
final
methodId String?
Method ID, or Request Class
final
result Future<APIResponse>
Result of the request
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings int
API Request Flags
final
useAuth bool
Attach credentials to the request
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