SessionDataShaftDriver class base

A specialized NccConnectionDriver that utilizes the SessionClient from ncc.

This driver is designed for authenticated communication. It leverages ncc's session management capabilities—such as automatic token injection, session persistence, and synchronized headers—while providing the RemoteDriver interface required by data_shaft repositories.

Inheritance

Constructors

SessionDataShaftDriver({required SessionClient client})
A specialized NccConnectionDriver that utilizes the SessionClient from ncc.

Properties

client SessionClient
The underlying ncc client responsible for executing the network calls.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding, Object? options}) Future<RequestResponse<Response>>
Sends an HTTP DELETE request to remove a resource.
inherited
driverRequestManagement(Uri url, {required RequestType type, Map<String, String>? headers, Object? body, Encoding? encoding, Object? options}) Future<Response>
Manages the request execution on the client based on the RequestType.
inherited
get(Uri url, {Map<String, String>? headers, Object? options}) Future<RequestResponse<Response>>
Sends an HTTP GET request to retrieve data.
inherited
Sends an HTTP HEAD request.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
obtainResponse({required Response response}) RequestResponse<Response>
Converts an ncc Response into a data_shaft RequestResponse.
inherited
patch(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding, Object? options}) Future<RequestResponse<Response>>
Sends an HTTP PATCH request to modify a resource partially.
inherited
post(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding, Object? options}) Future<RequestResponse<Response>>
Sends an HTTP POST request to submit data.
inherited
put(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding, Object? options}) Future<RequestResponse<Response>>
Sends an HTTP PUT request to replace a resource.
inherited
toString() String
A string representation of this object.
inherited

Operators

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