AptosRequest class

The API request type.

Constructors

AptosRequest({required String url, required String method, String? path, Object? body, String? contentType, String? acceptType, Map<String, Object?>? params, String? originMethod, AptosRequestOverrides? overrides})
const

Properties

acceptType → String?
The accepted response content type.
final
body → Object?
The body of the request (JSON-encodable object or raw bytes).
final
contentType → String?
The content type of the request body.
final
hashCode → int
The hash code for this object.
no setterinherited
method → String
GET or POST.
final
originMethod → String?
Tag identifying the SDK method that originated the request, sent in telemetry headers.
final
overrides → AptosRequestOverrides?
Per-request configuration overrides.
final
params → Map<String, Object?>?
The request query parameters.
final
path → String?
The endpoint (path) to make the request to.
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