QBearerOauthCraft class

A BearerOauthCraft with ability of queueing requests using RequestQueueing.

Inheritance
Mixed in types

Constructors

QBearerOauthCraft({required String accessToken, Client? client})
Creates new QBearerOauthCraft instance with accessToken and client.

Properties

accessToken String
Token used for OAuth authentication.
getter/setter pairinherited
authorizationHeaderValue String
A value to be used as 'Authorization' header value.
no setterinherited
client → Client
Underlying client used for making requests.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
locked bool
Returns whether the lock is currently locked or not.
no setterinherited
requestInProcessStream Stream<Request>
Stream on which the executing request is being streamed. Subscribing to this stream allows for easier monitoring of which request is currently being executed, e.g. for providing progress notifications.
no setterinherited
requestStreamController StreamController<Request>
Getter visible for testing only.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Cancels the controller behind requestInProcessStream and calls the super close method.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send<T>(Request<T> request, {bool lock = true}) Future<Response>
If lock is true, the request is queued and is executed once all previous queued requests are completed. If false, the queueing is bypassed and the request is executed immediately.
inherited
serializeBody<T>(T? body) Object?
Serializes body if it conforms to Serializable.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited