get<T> method
Future<XRPCResponse<T> >
get<T>(
- NSID methodId, {
- String? service,
- Map<
String, String> ? headers, - Map<
String, dynamic> ? parameters, - ResponseDataBuilder<
T> ? to, - ResponseDataAdaptor? adaptor,
- GetClient? client,
Implementation
Future<xrpc.XRPCResponse<T>> get<T>(
final NSID methodId, {
final String? service,
final Map<String, String>? headers,
final Map<String, dynamic>? parameters,
final xrpc.ResponseDataBuilder<T>? to,
final xrpc.ResponseDataAdaptor? adaptor,
final xrpc.GetClient? client,
}) async => await _challenge.execute(
() async => await xrpc.query(
methodId,
protocol: _protocol,
service: service ?? this.service,
headers: {..._headers ?? const {}, ...headers ?? const {}},
parameters: parameters,
to: to,
adaptor: adaptor,
timeout: _timeout,
headerBuilder: _buildAuthHeader,
getClient: client ?? _getClient,
),
onUpdateDpopNonce: _onUpdateDpopNonce,
);