post<T> method
Future<XRPCResponse<T> >
post<T>(
- NSID methodId, {
- String? service,
- Map<
String, String> ? headers, - Map<
String, dynamic> ? parameters, - dynamic body,
- ResponseDataBuilder<
T> ? to, - PostClient? client,
Implementation
Future<xrpc.XRPCResponse<T>> post<T>(
final NSID methodId, {
final String? service,
final Map<String, String>? headers,
final Map<String, dynamic>? parameters,
final dynamic body,
final xrpc.ResponseDataBuilder<T>? to,
final xrpc.PostClient? client,
}) async => await _challenge.execute(
() async => await xrpc.procedure(
methodId,
protocol: _protocol,
service: service ?? this.service,
headers: {..._headers ?? const {}, ...headers ?? const {}},
parameters: parameters,
body: body,
to: to,
timeout: _timeout,
headerBuilder: _buildAuthHeader,
postClient: client ?? _postClient,
),
onUpdateDpopNonce: _onUpdateDpopNonce,
);